Fix bug in compressed PixelStorageModes tests
authorSoroushIMG <soroush.kashani@imgtec.com>
Mon, 26 Jul 2021 13:36:56 +0000 (14:36 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 12 Aug 2021 07:02:26 +0000 (07:02 +0000)
commit344d27a807dd9ea71ffac9a953098b64de0ea67f
tree5a56cf37ce8215e244345eb0a272dd6631ad9972
parentb45d3fe50d6a462dfe20be5608b4d15f43c48145
Fix bug in compressed PixelStorageModes tests

Compressed pixel storage modes are tested by using the extension
ARB_compressed_texture_pixel_storage.
ARB_compressed_texture_pixel_storage is a core extension since
OpenGL 4.2. Therefore, the cases testing this behaviour need to
check for its support in GL context versions before 4.2.
Without this check drivers that do not provide this extension,
will fail this test instead of being marked as not supported.
This CL adds the mentioned extension checking.

Affects:
KHR-GL33.pixelstoragemodes.compressedteximage2d.*
KHR-GL33.pixelstoragemodes.compressedteximage3d.*

Components: OpenGL

VK-GL-CTS issue: 3020

Change-Id: Ib9a4edeb57995582c07aa11c7db11c6e7bbe1984
external/openglcts/modules/common/glcPixelStorageModesTests.cpp