[Piglit] [PATCH] arb_program_interface_query: fix getprogramresourceiv errors
Tapani Pälli
tapani.palli at intel.com
Tue Aug 11 22:14:43 PDT 2015
move IS_PER_PATCH as part of tessellation queries, require
GL_ARB_compute_shader for compute shader enum queries.
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91608
---
tests/spec/arb_program_interface_query/getprogramresourceiv.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/tests/spec/arb_program_interface_query/getprogramresourceiv.c b/tests/spec/arb_program_interface_query/getprogramresourceiv.c
index 03f2fc6..67f0fbf 100755
--- a/tests/spec/arb_program_interface_query/getprogramresourceiv.c
+++ b/tests/spec/arb_program_interface_query/getprogramresourceiv.c
@@ -571,16 +571,15 @@ check_extensions_prop(GLenum prop)
}
if ((prop == GL_REFERENCED_BY_TESS_CONTROL_SHADER ||
- prop == GL_REFERENCED_BY_TESS_EVALUATION_SHADER) &&
+ prop == GL_REFERENCED_BY_TESS_EVALUATION_SHADER ||
+ prop == GL_IS_PER_PATCH) &&
!piglit_is_extension_supported("GL_ARB_tessellation_shader")) {
return false;
}
- if ((prop == GL_REFERENCED_BY_COMPUTE_SHADER ||
- prop == GL_COMPUTE_SUBROUTINE_UNIFORM ||
- prop == GL_IS_PER_PATCH) &&
- !piglit_is_extension_supported("GL_ARB_compute_shader") &&
- !piglit_is_extension_supported("GL_ARB_shader_image_load_store")) {
+ if (prop == GL_REFERENCED_BY_COMPUTE_SHADER ||
+ prop == GL_COMPUTE_SUBROUTINE_UNIFORM &&
+ !piglit_is_extension_supported("GL_ARB_compute_shader")) {
return false;
}
--
2.1.0
More information about the Piglit
mailing list