Fix validation errors in ASTC decode mode tests
authorIlkka Saarelainen <ilkka.saarelainen@siru.fi>
Mon, 31 May 2021 12:10:38 +0000 (15:10 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 4 Jun 2021 09:25:42 +0000 (09:25 +0000)
commitd17a353c6cd41fd2c4f4cf7e6936accafd25ebbe
tree42c9392ffb88b36c944109083de76f5afb555a65
parent172085276088f5f5ac7b8bd729a6c371c4cf6bd4
Fix validation errors in ASTC decode mode tests

The tests were trying to compare the raw contents of each ASTC
block contents between the tested and reference images via UINT and
SINT image views, but the type of the image view must be compatible
with the image format.

This CL changes the test to compare individual sampled texel
values instead of raw ASTC texel block values. The generated
images now contain valid ASTC blocks instead of random values.

Affects:
dEQP-VK.image.astc_decode_mode.*

Components: Vulkan

VK-GL-CTS issue: 2820

Change-Id: I38113725692f754c5de4393b5fad5d333cf99533
external/vulkancts/modules/vulkan/image/vktImageAstcDecodeModeTests.cpp