From: Mike Blumenkrantz Date: Wed, 11 May 2022 12:49:21 +0000 (-0400) Subject: fix GL sparse texture gather offset constness X-Git-Tag: upstream/1.3.5~73^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=214c7bfa464cf16b83c59b6a805d7fdce914fc52;p=platform%2Fupstream%2FVK-GL-CTS.git fix GL sparse texture gather offset constness the offsets array must be a constant value, which, as defined by the spec, must be constant before optimizations, so declaring them in this way was illegal Affects: KHR-GL46.sparse_texture2_tests.SparseTexture2Lookup Change-Id: I8d03931e59ac15674ae55902f693338b2ce99cb2 --- diff --git a/external/openglcts/modules/gl/gl4cSparseTexture2Tests.cpp b/external/openglcts/modules/gl/gl4cSparseTexture2Tests.cpp index 49cb243..9ac1a3e 100644 --- a/external/openglcts/modules/gl/gl4cSparseTexture2Tests.cpp +++ b/external/openglcts/modules/gl/gl4cSparseTexture2Tests.cpp @@ -2381,7 +2381,7 @@ void SparseTexture2LookupTestCase::init() f.allowedTargets.insert(GL_TEXTURE_RECTANGLE); mFunctions.push_back(f); - f = FunctionToken("sparseTextureGatherOffsetsARB", ", offsetsArray"); + f = FunctionToken("sparseTextureGatherOffsetsARB", ", [4]((0),(0),(0),(0))"); f.allowedTargets.insert(GL_TEXTURE_2D); f.allowedTargets.insert(GL_TEXTURE_2D_ARRAY); f.allowedTargets.insert(GL_TEXTURE_RECTANGLE); @@ -2590,15 +2590,6 @@ SparseTexture2LookupTestCase::TokenStringsExt SparseTexture2LookupTestCase::crea // Set expected result vector, component definition and offset array definition for gather functions if (funcName.find("Gather", 0) != std::string::npos) { - if (funcName.find("GatherOffsets", 0) != std::string::npos) - { - s.offsetArrayDef = " offsetsArray[4];\n" - " offsetsArray[0] = (0);\n" - " offsetsArray[1] = (0);\n" - " offsetsArray[2] = (0);\n" - " offsetsArray[3] = (0);\n"; - } - if (format != GL_DEPTH_COMPONENT16) s.componentDef = ", 0"; s.resultExpected = "(1, 1, 1, 1)";