[Piglit] [PATCH 13/25] arb_direct_state_access: Port gettextureimage-targets to core profile

Ian Romanick idr at freedesktop.org
Mon May 18 13:50:06 PDT 2015


From: Ian Romanick <ian.d.romanick at intel.com>

The "supports_gl_compat_version = 10" was rubbish anyway because DSA
requires OpenGL 2.0.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 tests/spec/arb_direct_state_access/gettextureimage-targets.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/tests/spec/arb_direct_state_access/gettextureimage-targets.c b/tests/spec/arb_direct_state_access/gettextureimage-targets.c
index 4642cfe..3510f7b7 100644
--- a/tests/spec/arb_direct_state_access/gettextureimage-targets.c
+++ b/tests/spec/arb_direct_state_access/gettextureimage-targets.c
@@ -30,7 +30,8 @@
 
 PIGLIT_GL_TEST_CONFIG_BEGIN
 
-	config.supports_gl_compat_version = 10;
+	config.supports_gl_core_version = 31;
+	config.supports_gl_compat_version = 20;
 
 	config.window_visual = PIGLIT_GL_VISUAL_RGBA |
 			       PIGLIT_GL_VISUAL_DOUBLE;
@@ -255,12 +256,8 @@ piglit_init(int argc, char **argv)
 	piglit_require_extension("GL_ARB_direct_state_access");
 	piglit_require_extension("GL_ARB_texture_storage");
 
-	if (piglit_get_gl_version() < 12)
-		clear_target_mask(GL_TEXTURE_3D);
 	if (!piglit_is_extension_supported("GL_ARB_texture_rectangle"))
 		clear_target_mask(GL_TEXTURE_RECTANGLE);
-	if (!piglit_is_extension_supported("GL_ARB_texture_cube_map"))
-		clear_target_mask(GL_TEXTURE_CUBE_MAP);
 	if (!piglit_is_extension_supported("GL_EXT_texture_array")) {
 		clear_target_mask(GL_TEXTURE_1D_ARRAY);
 		clear_target_mask(GL_TEXTURE_2D_ARRAY);
-- 
2.1.0



More information about the Piglit mailing list