[Piglit] [PATCH 2/2] arb_texture_multisample/minmax: Don't check INTEGER without integer textures.

Eric Anholt eric at anholt.net
Fri Feb 10 22:06:47 UTC 2017


The extension spec is written against GL 3.1 so it assumes the
presence of EXT_texture_integer, but we also allow running on a compat
context which may not have it.

Fixes the test on vc4, which has multisampling but doesn't expose int
textures.
---
 tests/spec/arb_texture_multisample/minmax.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/spec/arb_texture_multisample/minmax.c b/tests/spec/arb_texture_multisample/minmax.c
index 93a8636bd1a8..9d54e72c7939 100644
--- a/tests/spec/arb_texture_multisample/minmax.c
+++ b/tests/spec/arb_texture_multisample/minmax.c
@@ -40,7 +40,8 @@ piglit_init(int argc, char **argv)
 	piglit_test_min_int(GL_MAX_SAMPLE_MASK_WORDS, 1);
 	piglit_test_min_int(GL_MAX_COLOR_TEXTURE_SAMPLES, 1);
 	piglit_test_min_int(GL_MAX_DEPTH_TEXTURE_SAMPLES, 1);
-	piglit_test_min_int(GL_MAX_INTEGER_SAMPLES, 1);
+	if (piglit_is_extension_supported("GL_EXT_texture_integer"))
+		piglit_test_min_int(GL_MAX_INTEGER_SAMPLES, 1);
 
 	piglit_report_result(piglit_minmax_pass ? PIGLIT_PASS : PIGLIT_FAIL);
 }
-- 
2.11.0



More information about the Piglit mailing list