[Mesa-dev] [Bug 32031] New: loop in function causes assertion
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Dec 1 17:11:36 PST 2010
https://bugs.freedesktop.org/show_bug.cgi?id=32031
Summary: loop in function causes assertion
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: major
Priority: medium
Component: Mesa core
AssignedTo: mesa-dev at lists.freedesktop.org
ReportedBy: jiajia.zheng at intel.com
Below shader causes assertion on Calpella (i965) with mesa master:
shader_runner: loop_analysis.cpp:141: virtual ir_visitor_status
loop_analysis::visit(ir_loop_jump*): Assertion `!this->state.is_empty()'
failed.
Aborted (core dumped)
[require]
GL >= 2.0
GLSL >= 1.10
[vertex shader]
bool myFunc(void)
{
int i;
for(i = 0; i < 2; i++)
{
if(i < 1)
return true;
else
return false;
}
}
void main(void)
{
if (myFunc())
gl_FrontColor = vec4(0.0, 1.0, 0.0, 1.0); // green
else
gl_FrontColor = vec4(1.0, 0.0, 0.0, 1.0); // red
gl_Position = gl_Vertex;
}
[test]
draw rect -1 -1 2 2
probe all rgba 0.0 1.0 0.0 1.0
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list