Fix image validation errors in SPIR-V tests
authorPaavo Pessi <paavo.pessi@siru.fi>
Fri, 6 Apr 2018 11:12:05 +0000 (14:12 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 19 Apr 2018 08:44:34 +0000 (04:44 -0400)
commitecc9de94efa4fe3a86c13a37c2bdf61e4540b833
treed0c836a2c99b7c6149d5b1c25a992be6192a7684
parent2e7264846b2b715772c2b7bc4a002c29f786385e
Fix image validation errors in SPIR-V tests

A helper function for uploading images caused validation errors by
setting the image layout to SHADER_READ_ONLY_OPTIMAL regardless of the
image descriptor type.

A new parameter for defining the image layout was added to the helper
function, and tests using storage images were changed to use GENERAL
layout.

Affects:

dEQP-VK.spirv_assembly.instruction.compute.image_sampler.imageread.storage_image.*

Components: Vulkan, Framework

VK-GL-CTS issue: 1111

Change-Id: I783c87fe2dd91d65537343d1ae88e3a4f07b77c6
external/vulkancts/framework/vulkan/vkImageUtil.cpp
external/vulkancts/framework/vulkan/vkImageUtil.hpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmComputeShaderCase.cpp