From: Mika Isojärvi Date: Wed, 16 Mar 2016 20:30:22 +0000 (-0700) Subject: Fix cube map array extension checks in opaque indexing tests X-Git-Tag: upstream/0.1.0~438^2~361^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d463a0af03170dc5306552bb9128fc782e9866d;p=platform%2Fupstream%2FVK-GL-CTS.git Fix cube map array extension checks in opaque indexing tests Bug: 27570992 Change-Id: I7be5792ac51331e171cd6194f2c50e47307210ae --- diff --git a/modules/gles31/functional/es31fOpaqueTypeIndexingTests.cpp b/modules/gles31/functional/es31fOpaqueTypeIndexingTests.cpp index 46670ca..c605740 100644 --- a/modules/gles31/functional/es31fOpaqueTypeIndexingTests.cpp +++ b/modules/gles31/functional/es31fOpaqueTypeIndexingTests.cpp @@ -381,9 +381,9 @@ void SamplerIndexingCase::init (void) "GL_EXT_gpu_shader5 extension is required for dynamic indexing of sampler arrays."); if (m_samplerType == TYPE_SAMPLER_CUBE_ARRAY - && m_samplerType == TYPE_SAMPLER_CUBE_ARRAY_SHADOW - && m_samplerType == TYPE_INT_SAMPLER_CUBE_ARRAY - && m_samplerType == TYPE_UINT_SAMPLER_CUBE_ARRAY) + || m_samplerType == TYPE_SAMPLER_CUBE_ARRAY_SHADOW + || m_samplerType == TYPE_INT_SAMPLER_CUBE_ARRAY + || m_samplerType == TYPE_UINT_SAMPLER_CUBE_ARRAY) { TCU_CHECK_AND_THROW(NotSupportedError, m_context.getContextInfo().isExtensionSupported("GL_EXT_texture_cube_map_array"), @@ -410,10 +410,10 @@ void SamplerIndexingCase::getShaderSpec (ShaderSpec* spec, int numSamplers, int global << "#extension GL_EXT_gpu_shader5 : require\n"; if (!isES32 - && m_samplerType == TYPE_SAMPLER_CUBE_ARRAY - && m_samplerType == TYPE_SAMPLER_CUBE_ARRAY_SHADOW - && m_samplerType == TYPE_INT_SAMPLER_CUBE_ARRAY - && m_samplerType == TYPE_UINT_SAMPLER_CUBE_ARRAY) + && (m_samplerType == TYPE_SAMPLER_CUBE_ARRAY + || m_samplerType == TYPE_SAMPLER_CUBE_ARRAY_SHADOW + || m_samplerType == TYPE_INT_SAMPLER_CUBE_ARRAY + || m_samplerType == TYPE_UINT_SAMPLER_CUBE_ARRAY)) { global << "#extension GL_EXT_texture_cube_map_array: require\n"; }