[Bug 96729] Wrong shader compilation error message
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jun 29 16:07:57 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=96729
Bug ID: 96729
Summary: Wrong shader compilation error message
Product: Mesa
Version: 10.3
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: glsl-compiler
Assignee: idr at freedesktop.org
Reporter: b7.10110111 at gmail.com
QA Contact: intel-3d-bugs at lists.freedesktop.org
Consider the following vertex shader:
#version 120
vec4 toColor(float x)
{
ivec4 v=ivec4(0,0,0,0);
v.y+=128*x;
return v*1.;
}
void main()
{
gl_Position=gl_ModelViewProjectionMatrix*gl_Vertex;
vec4 c=toColor(0.);
gl_FrontColor=vec4(c.rgb,1);
}
It contains an error of implicit conversion of float to integer. But what I get
in Mesa's info log instead is:
0:6(2): error: non-lvalue in assignment
And this is despite v.y is an lvalue.
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20160629/6fa42e8f/attachment.html>
More information about the intel-3d-bugs
mailing list