Add ASTC LDR error colour quality warning
authorAlex Walters <alex.walters@imgtec.com>
Fri, 14 Sep 2018 10:44:55 +0000 (11:44 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 25 Jan 2019 19:45:13 +0000 (14:45 -0500)
commitc21a1203ab3f862f2680727e87583ca7ade6c7c3
tree54a03fe9925947630f4a9f1111e93a1183815e9c
parent3d9569808851a7e506f23802cc1dd1cd7594b67b
Add ASTC LDR error colour quality warning

Some hardware can output the HDR error colour (black) instead of the
LDR error colour (magenta). Valid compression blocks are rendered
correctly.

This change adds a second comparison mechanism if the initial *fast*
deMemCmp fails; the texture values are compared allowing for any value
matching an error colour to compare against the other error colour.

If such a match is detected the test will output a QualityWarning
instead of a Pass.

If the two compared values don't match, but are not both error colours
the test result is still a Fail.

Affects:

dEQP-VK.image.texel_view_compatible*astc*

Components: Vulkan

VK-GL-CTS issue: 1231

Change-Id: Ie14913de0f2f3cf7fed90c275e48c67181c1e7ff
(cherry picked from commit b038d43aa868be1e6d4471c6977984151ada3af5)
external/vulkancts/modules/vulkan/image/vktImageCompressionTranscodingSupport.cpp