Commit 7a92b022 authored by Kenneth Graunke's avatar Kenneth Graunke

Fix pbo-getteximage to check for GL_ARB_texture_cube_map_array

i965 doesn't support this feature on the older Gen4-5 GPUs,
so the test was throwing GL errors and failing probes.  Just skip
the cube map array subtest if the feature isn't there.
Reviewed-by: Pierre-Eric Pelloux-Prayer's avatarPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
parent cddcb78f
Pipeline #71161 passed with stage
......@@ -306,7 +306,8 @@ piglit_init(int argc, char **argv)
pass &= test_getteximage(GL_TEXTURE_2D_ARRAY, 2, 2, 2, pixels);
pass &= test_getteximage(GL_TEXTURE_3D, 2, 2, 2, pixels);
pass &= test_getteximage(GL_TEXTURE_CUBE_MAP, 2, 2, 0, pixels);
pass &= test_getteximage(GL_TEXTURE_CUBE_MAP_ARRAY, 2, 2, 12, pixels);
if (piglit_is_extension_supported("GL_ARB_texture_cube_map_array"))
pass &= test_getteximage(GL_TEXTURE_CUBE_MAP_ARRAY, 2, 2, 12, pixels);
pass &= test_gettexturesubimage(GL_TEXTURE_1D, 2, 0, 0, pixels);
pass &= test_gettexturesubimage(GL_TEXTURE_1D_ARRAY, 2, 2, 0, pixels);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment