Fix asserts and check for base image format support in image.mutable tests
authorSlawomir Cygan <slawomir.cygan@intel.com>
Thu, 2 Aug 2018 16:01:57 +0000 (18:01 +0200)
committerSlawomir Cygan <slawomir.cygan@intel.com>
Mon, 22 Oct 2018 12:58:38 +0000 (14:58 +0200)
commit298c3323cdde62b01dc1fff7b8c6d61094f0d808
tree47e82242d7514d8a2ee9721a0427a4785371c4f7
parent571bc35ac20fd5dbae5fd7e2922511e072f37954
Fix asserts and check for base image format support in image.mutable tests

This adds a check if base image can be created given the format.

It is required for implementations supporting VK_KHR_maintenance2 or 1.1:
if these are supported, the exisiting VkImageView format support does not
cover base image format support.

Additionally, fix malformed asserts and missign case switches in this test.

Components: Vulkan

Affects: dEQP-VK.image.mutable

VK-GL-CTS Issue: 1295, 1294

(cherry picked from commit eaaa3979b015e2a923b3250b4269d3c9d21137cc)

Change-Id: I7a4afbb624d73aadca4f9a6edf955b3cdc2d863e
external/vulkancts/modules/vulkan/image/vktImageMutableTests.cpp