]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/complex_constant_condition_removal.glsl
Fix GLSL test cases so they pass the basic tests
[libs/gl.git] / tests / glsl / complex_constant_condition_removal.glsl
index 8a9d96ac5c77581cee1f4e0536a97b254be19a6b..68c0c30c29c00437c2722667a50d911d1c525a6e 100644 (file)
@@ -15,16 +15,18 @@ void main()
 layout(location=0) out vec4 frag_color;
 void main()
 {
-       if(lod+bias<threshold)
+       if(!(lod+bias>threshold))
                frag_color = color;
        else
                frag_color = vec4(1.0);
 }
 
+// Target API: Vulkan
+
 /* Expected output: vertex
 layout(location=0) in vec4 position;
 layout(location=1) in vec4 color;
-out vec4 _vs_out_color;
+layout(location=0) out vec4 _vs_out_color;
 void main()
 {
        gl_Position = position;
@@ -34,7 +36,7 @@ void main()
 
 /* Expected output: fragment
 layout(location=0) out vec4 frag_color;
-in vec4 _vs_out_color;
+layout(location=0) in vec4 _vs_out_color;
 void main()
 {
        frag_color = _vs_out_color;