Fix image sizes for formats that need a multiple of 2.
authorBas Nieuwenhuizen <basni@google.com>
Thu, 2 May 2019 21:13:14 +0000 (23:13 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 22 May 2019 06:35:38 +0000 (02:35 -0400)
commitee8e5f078e5d6e1d6baded08de6f156457309bc1
treee1637c0e334c5172a73bf662c3ab4f7fadaf2af2
parent7d4bac01153ab738908fc694c0fe77dc05e5ed1a
Fix image sizes for formats that need a multiple of 2.

All these have in their format definition something like

"Images in this format must be defined with a width that is a multiple
 of two."

in their format definition.

This patch makes sure we actually use even sizes for images with these
formats.

It is not ideal that I have to hardcode these lists but I don't know a
better source to get them from.

Affects:

dEQP-VK.api.invariance.random

Components: Vulkan

VK-GL-CTS issue: 1766

Change-Id: Ie19583db56e7ae483136e1fb4651ae625efb9c02
external/vulkancts/framework/vulkan/vkImageUtil.cpp
external/vulkancts/framework/vulkan/vkImageUtil.hpp
external/vulkancts/modules/vulkan/api/vktApiMemoryRequirementInvarianceTests.cpp