[Piglit] [PATCH 2/2] arb_shader_image_size/builtin: make sure that each target gets tested

Martin Peres martin.peres at linux.intel.com
Wed Aug 12 05:42:45 PDT 2015


Signed-off-by: Martin Peres <martin.peres at linux.intel.com>
---
 tests/spec/arb_shader_image_size/builtin.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/spec/arb_shader_image_size/builtin.c b/tests/spec/arb_shader_image_size/builtin.c
index 48a1d1e..550a913 100755
--- a/tests/spec/arb_shader_image_size/builtin.c
+++ b/tests/spec/arb_shader_image_size/builtin.c
@@ -226,11 +226,15 @@ piglit_init(int argc, char **argv)
 
 	for (stage = image_stages(); stage->stage; ++stage) {
 		for (target = image_targets(); target->name; ++target) {
+			bool target_tested = false;
 			for (d = 0; d < 4; ++d) {
-				if (should_test_dimension(target, d)) {
+				if (should_test_dimension(target, d) ||
+				    (d == 3 && target_tested)) {
 					const struct image_extent size =
 						get_test_extent(target, d);
 
+					target_tested = true;
+
 					subtest(&status,
 						is_test_reasonable(quick, size),
 						run_test(target, size),
-- 
2.5.0



More information about the Piglit mailing list