From: Juan A. Suarez Romero Date: Mon, 14 May 2018 15:24:04 +0000 (+0000) Subject: Skip BC/DXT formats in Texture3D tests X-Git-Tag: upstream/1.3.5~2133^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b02c9b543690e1e3085ebd93546894fc761bc25b;p=platform%2Fupstream%2FVK-GL-CTS.git Skip BC/DXT formats in Texture3D tests These formats only supports 2D images. Affects: KHR-GLES2.texture_3d.compressed_texture.negative_compressed_tex_image KHR-GLES2.texture_3d.compressed_texture.negative_compressed_tex_sub_image Components: OpenGL VK-GL-CTS issue: 1163 Change-Id: I806dccfdbb2969b51c0ee9a1010c04107154733a (cherry picked from commit a0b8363a7837546c73e4d30a6c6d37da21ea8645) --- diff --git a/external/openglcts/modules/gles2/es2cTexture3DTests.cpp b/external/openglcts/modules/gles2/es2cTexture3DTests.cpp index 4501b5e6d..6424f1b25 100644 --- a/external/openglcts/modules/gles2/es2cTexture3DTests.cpp +++ b/external/openglcts/modules/gles2/es2cTexture3DTests.cpp @@ -169,9 +169,10 @@ void Texture3DBase::getSupportedCompressedFormats(std::set& formatsSet) con formatsSet.clear(); for (int formatNdx = 0; formatNdx < tcu::COMPRESSEDTEXFORMAT_LAST; formatNdx++) { - // ETC2/EAC texture compression algorithm supports only two-dimensional images + // ETC2/EAC/BC (also known as DXT) texture compression algorithm + // supports only two-dimensional images tcu::CompressedTexFormat format = static_cast(formatNdx); - if (tcu::isEtcFormat(format)) + if (tcu::isEtcFormat(format) || tcu::isBcFormat(format)) continue; int glFormat = glu::getGLFormat(format);