Fix sparse cubemap array tests issues
authorJeannot Breton <jbreton@nvidia.com>
Thu, 25 May 2017 20:48:20 +0000 (15:48 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 26 May 2017 18:57:40 +0000 (14:57 -0400)
commit77bed170bfd1332e9e2bfa0dda777606c2916f81
treea1cd4886a5ad9179670457e962b01d2bcc485701
parent809931666594e234d55c59108cd931905608e37f
Fix sparse cubemap array tests issues

Add cubeMapArrayRefZDef, a new shader token used as <compare>
parameters on some shadow cube map array texture instructions

Add <CUBE_REFZ_DEF> to some FunctionToken argument list definitions.
It will be replaced by the value of cubeMapArrayRefZDef.

Copy the depth reference value to s.cubeMapArrayRefZDef when we
generate the shader tokens

Change the way cube map array texture coordinate are computed in
the shader to support array with more than 6 layers

Specify that textureGradClampARB on shadow cubemap array is not
supported

Generate cube map array texture coordinate attributes as a vec4
with different coordinate for each layer

Affects:

KHR-GL45.sparse_texture2_tests.*
KHR-GL45.sparse_texture_clamp_tests.*

Components: OpenGL

VK-GL-CTS issue: 445

Change-Id: Ia9fb2240396ab4a34dd697d0b96985da35dfe802
external/openglcts/modules/gl/gl4cSparseTexture2Tests.cpp
external/openglcts/modules/gl/gl4cSparseTexture2Tests.hpp
external/openglcts/modules/gl/gl4cSparseTextureClampTests.cpp