Commit fd325918 authored by Jason Ekstrand's avatar Jason Ekstrand
Browse files

ssa: Add a test for the classic "lost copy problem" in out-of-SSA translation


Signed-off-by: Jason Ekstrand's avatarJason Ekstrand <jason.ekstrand@intel.com>
Reviewed-By: Glenn Kennard's avatarGlenn Kennard <glenn.kennard@gmail.com>
parent d425d565
[require]
GLSL >= 1.10
[fragment shader]
uniform int count;
void main()
{
int j = 0;
for (int i = 0; i <= count; ++i)
j = i;
if (j == 6)
gl_FragColor = vec4(0, 1, 0, 1);
else
gl_FragColor = vec4(1, 0, 0, 1);
}
[test]
uniform int count 6
draw rect -1 -1 2 2
probe all rgba 0.0 1.0 0.0 1.0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment