3 GL_MESA_shader_integer_functions
6 #extension GL_MESA_shader_integer_functions : enable
12 uniform uvec4 expected_sum, expected_carry;
16 gl_Position = piglit_vertex;
18 color = vec4(0.0, 1.0, 0.0, 1.0);
21 uvec4 sum = uaddCarry(x, y, carry);
23 if (sum != expected_sum)
25 if (carry != expected_carry)
39 uniform uvec4 x 0 1 2 3
40 uniform uvec4 y 1 2 3 4
41 uniform uvec4 expected_sum 1 3 5 7
42 uniform uvec4 expected_carry 0 0 0 0
44 probe all rgba 0.0 1.0 0.0 1.0
46 uniform uvec4 x 0 1 1 2
47 uniform uvec4 y 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFE 0xFFFFFFFE
48 uniform uvec4 expected_sum 0xFFFFFFFF 0 0xFFFFFFFF 0
49 uniform uvec4 expected_carry 0 1 0 1
51 probe all rgba 0.0 1.0 0.0 1.0
53 uniform uvec4 x 2 3 2 3
54 uniform uvec4 y 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFE 0xFFFFFFFE
55 uniform uvec4 expected_sum 1 2 0 1
56 uniform uvec4 expected_carry 1 1 1 1
58 probe all rgba 0.0 1.0 0.0 1.0
60 uniform uvec4 x 0x80000000 0x80000000 0x80000000 0x80000001
61 uniform uvec4 y 0x80000000 0x80000001 0x7FFFFFFF 0x7FFFFFFF
62 uniform uvec4 expected_sum 0 1 0xFFFFFFFF 0
63 uniform uvec4 expected_carry 1 1 0 1
65 probe all rgba 0.0 1.0 0.0 1.0