Test image load/store with packed formats
authorToni Merilehti <toni.merilehti@siru.fi>
Wed, 5 Jun 2019 13:05:10 +0000 (16:05 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 4 Jul 2019 09:18:05 +0000 (05:18 -0400)
commitd89b3f3a8cd2bea7f2248492a626c9af8c755174
tree0adcc58185edbf05de2d1fbef68819d74fb888f4
parent12138e34fbea5bf687d0ae02cceb0bb282374a26
Test image load/store with packed formats

This CL adds image load/store tests for the packed formats
requiring the StorageImageExtendedFormats SPIR-V capability.
The thresholds in the result verification are now based
on the channel class and bit depths of the components.

The shader generation is modified to store also negative
values on signed formats.

New tests:

dEQP-VK.image.store.*pack32*
dEQP-VK.image.load_store.*pack32*
dEQP-VK.image.format_reinterpret.*pack32*

Affects:

dEQP-VK.image.store.*
dEQP-VK.image.load_store.*
dEQP-VK.image.format_reinterpret.*
dEQP-VK.image.qualifiers.restrict.*

Components: Framework, Vulkan

VK-GL-CTS issue: 1814

Change-Id: Ia2d061dbfd9c19ade8057398dd78692b5a28c029
android/cts/master/vk-master.txt
external/vulkancts/framework/vulkan/vkImageUtil.cpp
external/vulkancts/framework/vulkan/vkImageUtil.hpp
external/vulkancts/modules/vulkan/image/vktImageLoadStoreTests.cpp
external/vulkancts/modules/vulkan/image/vktImageLoadStoreUtil.cpp
external/vulkancts/modules/vulkan/image/vktImageLoadStoreUtil.hpp
external/vulkancts/modules/vulkan/image/vktImageTestsUtil.cpp
external/vulkancts/mustpass/master/vk-default-no-waivers.txt
external/vulkancts/mustpass/master/vk-default.txt