3 GL_ARB_uniform_buffer_object
6 #extension GL_ARB_uniform_buffer_object: require
8 /* Setting the COLUMN_MAJOR define will cause the test to pass. The problem
9 * appears to be that the i965 backend generates the load of s[1].bv2.x from
10 * offset 80 even when m41_1 is row-major. When m41_1 is row-major,
11 * s[1].bv2.x should be at offset 64. This is correctly reported via the GL
14 //#define COLUMN_MAJOR
29 flat out int vertex_pass;
30 in vec4 piglit_vertex;
34 vertex_pass = int(s[1].bv2.x);
35 gl_Position = piglit_vertex;
39 out vec4 piglit_fragcolor;
40 flat in int vertex_pass;
44 piglit_fragcolor = vec4(1 - vertex_pass, vertex_pass, 0, 1);
48 active uniform s[1].m42_1 GL_UNIFORM_OFFSET 64
49 active uniform s[1].m42_1 GL_UNIFORM_IS_ROW_MAJOR 1
51 uniform ivec2 s[1].bv2 1 0
54 probe all rgba 0.0 1.0 0.0 1.0