Fix emulated compressed format issues
authorJeannot Breton <jbreton@nvidia.com>
Fri, 9 Jun 2017 21:45:06 +0000 (16:45 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 21 Jul 2017 16:06:08 +0000 (12:06 -0400)
commitf6331a3bb3753472a2676790bbef01c99a14dec0
treebeee84bf1bb71a530f298a792752c90727975b89
parent2f12f4aa5b0499e1e5ad205fc0f415e5f684fb42
Fix emulated compressed format issues

When a compressed texture format is emulated, it's possible that the
compress data we get from a glGetCompressedTexImage call is not the
same as what was send through glCompressedTextureSubImage.

So the test needs to be update to handle this situation

KHR-GL45.direct_state_access.textures_get_image now uses
GL_COMPRESSED_RGBA_BPTC_UNORM instead of GL_COMPRESSED_RGB8_ETC2.
GL_COMPRESSED_RGBA_BPTC_UNORM should not be emulated

KHR-GL45.direct_state_access.textures_compressed_subimage store
source and destination compressed texture data.
It also now validate subregion transfert.

Affects:

KHR-GL45.direct_state_access.textures_compressed_subimage
KHR-GL45.direct_state_access.textures_get_image

Components: OpenGL

VK-GL-CTS issue: 491

Change-Id: I0293dd987fc03b719513ea22526f9614d6a9c106
external/openglcts/modules/gl/gl4cDirectStateAccessTests.hpp
external/openglcts/modules/gl/gl4cDirectStateAccessTexturesTests.cpp