Add tests for usage of pixel storage modes
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Wed, 26 Feb 2020 15:28:21 +0000 (17:28 +0200)
committerYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Wed, 6 May 2020 14:47:58 +0000 (17:47 +0300)
commit49b65e24955f8485ddfd70bae03c2e0fa7a70fd3
tree2de8ed90913735ec0747266ca799105ebea462a3
parent551a647dd822ed9e0893a3f073cd38b24915fabf
Add tests for usage of pixel storage modes

Pixel storage modes allow to select a subregion of data when
specifying a texture image.

For example, when specifying a 2D texture image, by setting both
GL_UNPACK_SKIP_PIXELS and GL_UNPACK_SKIP_ROWS, a subrectangle can be
selected.

This set of tests contains subcases for:

- glTexImage2D
- glTexImage3D
- glCompressedTexImage2D
- glCompressedTexImage3D

Source data is filled with black colour with a white (or different
shades of grey for each layer in case of 3D textures) subregion
somewhere within it. This subregion is then selected by setting pixel
storage modes and used as a source when specifying a texture. The
correct colour is checked in a shader.

Compressed cases use two compression formats:

- GL_COMPRESSED_RGB_S3TC_DXT1_EXT
- GL_COMPRESSED_RGBA_ASTC_8x5_KHR

Adds a new subgroup of tests to two groups:

- KHR-GL33.pixelstoragemodes.*
- KHR-GLES31.core.pixelstoragemodes.*

Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
external/openglcts/modules/common/CMakeLists.txt
external/openglcts/modules/common/glcPixelStorageModesTests.cpp [new file with mode: 0644]
external/openglcts/modules/common/glcPixelStorageModesTests.hpp [new file with mode: 0644]
external/openglcts/modules/gl/gl3cTestPackages.cpp
external/openglcts/modules/gl/gl4cTestPackages.cpp
external/openglcts/modules/gles31/es31cTestPackage.cpp