[Piglit] [RFC 12/12] generated builtin_uniform: Fix dimensions of cs tests
Dylan Baker
baker.dylan.c at gmail.com
Mon Dec 8 17:11:33 PST 2014
From: Jordan Justen <jordan.l.justen at intel.com>
Previously we created a 16 x 16 texture. But, the generated tests
require a variable width based on the number of sub-test-cases. The
tests also only need a texture with a height of 1.
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
.../templates/gen_builtin_uniform_tests/cs.shader_test.mako | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/generated_tests/templates/gen_builtin_uniform_tests/cs.shader_test.mako b/generated_tests/templates/gen_builtin_uniform_tests/cs.shader_test.mako
index 5667130..ff0ecd9 100644
--- a/generated_tests/templates/gen_builtin_uniform_tests/cs.shader_test.mako
+++ b/generated_tests/templates/gen_builtin_uniform_tests/cs.shader_test.mako
@@ -33,12 +33,12 @@ GL_${signature.extension}
#extension GL_${signature.extension} : require
% endif
writeonly uniform image2D tex;
-layout(local_size_x = 16, local_size_y = 16) in;
+layout(local_size_x = ${len(vectors)}) in;
${utils.make_shader(signature, comparator, 'tmp_color', prefix=['vec4 tmp_color;'], suffix=['ivec2 coord = ivec2(gl_GlobalInvocationID.xy);', 'imageStore(tex, coord, tmp_color);'], extension=False)}
[test]
uniform int tex 0
-texture rgbw 0 (16, 16)
+texture rgbw 0 (${len(vectors)}, 1)
image texture 0
fb tex 2d 0
${utils.make_test(vectors, signature, draw, comparator)}
--
2.2.0
More information about the Piglit
mailing list