conversion-explicit: use a different value for normalized +/- min
[piglit.git] / tests / spec / ext_shader_integer_mix / execution / fs-mix-if-bool.shader_test
blob50a27b8426acb69d85ef7862938910ff5a7eac78
1 [require]
2 GLSL >= 1.30
3 GL_EXT_shader_integer_mix
5 [vertex shader passthrough]
7 [fragment shader]
8 #extension GL_EXT_shader_integer_mix: enable
10 uniform bool a;
11 uniform bool b;
12 uniform bool selector;
14 void main()
16     if (mix(a, b, selector)) {
17         gl_FragColor = vec4(0, 1, 0, 1);
18     } else {
19         gl_FragColor = vec4(1, 0, 0, 1);
20     }
23 [test]
24 uniform int a 1
25 uniform int b 0
26 uniform int selector 0
28 draw rect -1 -1 2 2
29 probe all rgba 0 1 0 1