Create YCbCr with PREDEFINED layout
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Mon, 15 Apr 2019 16:39:12 +0000 (16:39 +0000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 23 Apr 2019 11:46:36 +0000 (07:46 -0400)
This fixes validation errors due mismatch with the expected initial
layout.

Affects:
* dEQP-VK.ycbcr.conversion.*

Components: Vulkan

VK-GL-CTS issue: 1737

Change-Id: If30f5ebb73529850c6bbafcd8e42bed6143864c3
(cherry picked from commit bcfe10d9aa5dbdb05296a5891e358b3581288845)

external/vulkancts/modules/vulkan/ycbcr/vktYCbCrConversionTests.cpp

index 7e13158..5630efc 100644 (file)
@@ -359,7 +359,7 @@ vk::Move<vk::VkImage> createImage (const vk::DeviceInterface&       vkd,
                vk::VK_SHARING_MODE_EXCLUSIVE,
                0u,
                (const deUint32*)DE_NULL,
-               vk::VK_IMAGE_LAYOUT_UNDEFINED,
+               vk::VK_IMAGE_LAYOUT_PREINITIALIZED,
        };
 
        return vk::createImage(vkd, device, &createInfo);