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

ssa: Add a test for the classic "swap 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 b1ee0f32
[require]
GLSL >= 1.10
[fragment shader]
uniform bool f;
void main()
{
gl_FragColor = vec4(1, 0, 0, 1);
do {
gl_FragColor.xy = gl_FragColor.yx;
} while (f);
}
[test]
uniform int f = 0
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