Enable roundtrip for scaled formats in TCU
authorMika Väinölä <mika.vainola@siru.fi>
Tue, 27 Aug 2019 11:44:20 +0000 (14:44 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 4 Oct 2019 09:53:42 +0000 (05:53 -0400)
commitb79b96d13aeee6ba285d01f964464b4488c9fe15
treef13e6945a6323f10768242c2e7866a64c2c78713
parentcd876c96afeaf3a80dabb30777670a93c1bdcb68
Enable roundtrip for scaled formats in TCU

Currently some swizzle tests attempting to use scaled formats end up
testing integer formats instead and pass even though the implementation
does not actually support the required scaled format features. This CL
adds scaled TCU TextureFormats which should behave identically to
integer formats but enable scaled VkFormats to be mapped correctly.

Affects:
dEQP-VK.texture.swizzle.*scaled*

Components: Framework, Vulkan

VK-GL-CTS issue: 1752

Change-Id: I038f0f82448f3c44af8d4fec0b6f258013d90f5e
external/vulkancts/framework/vulkan/vkImageUtil.cpp
external/vulkancts/modules/vulkan/image/vktImageTestsUtil.cpp
external/vulkancts/modules/vulkan/texture/vktSampleVerifierUtil.cpp
framework/common/tcuTexture.cpp
framework/common/tcuTexture.hpp
framework/common/tcuTextureUtil.cpp
modules/internal/ditTextureFormatTests.cpp