3 GL_MESA_shader_integer_functions
6 #extension GL_MESA_shader_integer_functions : enable
11 uniform ivec4 ireverse;
13 uniform uvec4 ureverse;
17 gl_Position = piglit_vertex;
19 /* Green if both pass. */
20 color = vec4(0.0, 1.0, 0.0, 1.0);
22 if (ireverse != bitfieldReverse(iinput))
23 /* Red if bitfieldReverse(ivec4) fails. */
24 color = vec4(1.0, 0.0, 0.0, 1.0);
25 else if (ureverse != bitfieldReverse(uinput))
26 /* Blue if bitfieldReverse(uvec4) fails. */
27 color = vec4(0.0, 0.0, 1.0, 1.0);
40 uniform ivec4 iinput 0 -1 -1 0
41 uniform ivec4 ireverse 0 -1 -1 0
42 uniform uvec4 uinput 0 0xFFFFFFFF 0xFFFFFFFF 0
43 uniform uvec4 ureverse 0 0xFFFFFFFF 0xFFFFFFFF 0
45 probe all rgba 0.0 1.0 0.0 1.0
47 uniform ivec4 iinput 1 2 4 8
48 uniform ivec4 ireverse -2147483648 1073741824 536870912 268435456
49 uniform uvec4 uinput 1 2 4 8
50 uniform uvec4 ureverse 0x80000000 0x40000000 0x20000000 0x10000000
52 probe all rgba 0.0 1.0 0.0 1.0
54 uniform ivec4 iinput -2147483648 1073741824 536870912 268435456
55 uniform ivec4 ireverse 1 2 4 8
56 uniform uvec4 uinput 0x80000000 0x40000000 0x20000000 0x10000000
57 uniform uvec4 ureverse 1 2 4 8
59 probe all rgba 0.0 1.0 0.0 1.0
61 uniform ivec4 iinput -255852544 -268435456 32768 25165824
62 uniform ivec4 ireverse 783 15 65536 384
63 uniform uvec4 uinput 783 15 0x00010000 0x01800000
64 uniform uvec4 ureverse 0xF0C00000 0xF0000000 0x00008000 0x00000180
66 probe all rgba 0.0 1.0 0.0 1.0