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)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 24 Aug 2018 13:26:20 +0000 (09:26 -0400)
commiteaaa3979b015e2a923b3250b4269d3c9d21137cc
treeda1a167655470305b5d9557e7c7117e644905298
parent1576d1dfcd3231088eba0aff6a34effa21b84112
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

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