[Piglit] [PATCH] arb_program_interface_query: fix resource-query test errors

Tapani Pälli tapani.palli at intel.com
Fri Sep 4 04:06:24 PDT 2015


Some of the subtests have compute shaders that utilize imageStore
functionality, require both extensions to be supported.

Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
 tests/spec/arb_program_interface_query/resource-query.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/spec/arb_program_interface_query/resource-query.c b/tests/spec/arb_program_interface_query/resource-query.c
index c131891..000174e 100755
--- a/tests/spec/arb_program_interface_query/resource-query.c
+++ b/tests/spec/arb_program_interface_query/resource-query.c
@@ -654,7 +654,7 @@ check_extensions(const struct subtest_t st)
 	if ((st.programInterface == GL_COMPUTE_SUBROUTINE ||
 	     st.programInterface == GL_COMPUTE_SUBROUTINE_UNIFORM ||
 	     st.cs_text) &&
-	     !piglit_is_extension_supported("GL_ARB_compute_shader") &&
+	     !piglit_is_extension_supported("GL_ARB_compute_shader") ||
 	     !piglit_is_extension_supported("GL_ARB_shader_image_load_store")) {
 		 return false;
 	 }
-- 
2.4.3



More information about the Piglit mailing list