From: Jordan Justen <[email protected]> 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 <[email protected]> Signed-off-by: Dylan Baker <[email protected]> --- .../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 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
