SparseTextureAlloc check for GL_NV_deep_texture3D
authorLiam Middlebrook <lmiddlebrook@nvidia.com>
Fri, 19 Jan 2018 23:04:34 +0000 (15:04 -0800)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 6 Feb 2018 09:11:00 +0000 (04:11 -0500)
commit7e9411eff23d4589f7db0dc717d0ac53575672da
treea606f5e8b4fb3fe67e2e6302a28799cdc5bf420c
parent4e8e09fb71613ae70e5df70e3ae9fc188584c8b4
SparseTextureAlloc check for GL_NV_deep_texture3D

When running the
SparseTextureAllocationTestCase::verifyTexStorageInvalidValueErrors test
we need to check if the GL_NV_deep_texture3D extension is supported. If
so we can't compare the depth of the texture against the
GL_MAX_3D_TEXTURE_SIZE attribute that is intended for symmetric texture
limits. Instead we need to check against GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV
provided the texture width and height are within the acceptable ranges
for a deep texture.

Components: OpenGL

VK-GL-CTS issue: 959

Change-Id: I0e404d6851724b0624d0802603a12aea3af220e5
Reviewed-by: ewerness
external/openglcts/modules/gl/gl4cSparseTextureTests.cpp