Extend CopyImage tests to test astc_sliced_3d
authorGraeme Leese <gleese@broadcom.com>
Thu, 21 Jan 2021 10:52:22 +0000 (10:52 +0000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 18 Feb 2021 11:10:07 +0000 (11:10 +0000)
These tests can be run for this extension, so they should be run.

Components: OpenGL
Affects: dEQP-GLES31.functional.copy_image.compressed.*astc*
         dEQP-GLES31.functional.copy_image.mixed.*astc*

Change-Id: Ibc9006678affe6bea27c6851ef7ed663cec0693e

modules/gles31/functional/es31fCopyImageTests.cpp

index c117fd21d06c2023668d156aa1fb0888e37191ef..502dd45c76b0e3b721ef06271cc5d76473c1dc5f 100644 (file)
@@ -1898,11 +1898,12 @@ void checkFormatSupport (glu::ContextInfo& info, deUint32 format, deUint32 targe
                if (isAstcFormat(glu::mapGLCompressedTexFormat(format)))
                {
                        DE_ASSERT(target != GL_RENDERBUFFER);
-                       if (!info.isExtensionSupported("GL_KHR_texture_compression_astc_hdr") &&
+                       if (!info.isExtensionSupported("GL_KHR_texture_compression_astc_sliced_3d") &&
+                               !info.isExtensionSupported("GL_KHR_texture_compression_astc_hdr") &&
                                !info.isExtensionSupported("GL_OES_texture_compression_astc"))
                        {
                                if (target == GL_TEXTURE_3D)
-                                       TCU_THROW(NotSupportedError, "TEXTURE_3D target requires HDR astc support.");
+                                       TCU_THROW(NotSupportedError, "TEXTURE_3D target not supported.");
                                if (!isES32 && !info.isExtensionSupported("GL_KHR_texture_compression_astc_ldr"))
                                        TCU_THROW(NotSupportedError, "Compressed astc texture not supported.");
                        }