image_clearing: Don't set a component mapping for the view to be cleared
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 31 May 2016 18:42:02 +0000 (11:42 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 31 May 2016 18:48:47 +0000 (11:48 -0700)
From the Vulkan 1.0.12 spec for VkComponentMapping:

    "This remapping must be identity for storage image descriptors, input
    attachment descriptors, and framebuffer attachments."

This fixes 6 CTS tests on the Intel Linux driver.

external/vulkancts/modules/vulkan/api/vktApiImageClearingTests.cpp

index 8d7e602..b504f86 100644 (file)
@@ -514,7 +514,12 @@ Move<VkImageView> ImageClearingTestInstance::createImageView (VkImage image, VkI
                image,                                                                          // VkImage                                              image;
                viewType,                                                                       // VkImageViewType                              viewType;
                format,                                                                         // VkFormat                                             format;
-               getFormatComponentMapping(format),                      // VkComponentMapping                   components;
+               {
+                       VK_COMPONENT_SWIZZLE_IDENTITY,                          // VkComponentSwizzle                   r;
+                       VK_COMPONENT_SWIZZLE_IDENTITY,                          // VkComponentSwizzle                   g;
+                       VK_COMPONENT_SWIZZLE_IDENTITY,                          // VkComponentSwizzle                   b;
+                       VK_COMPONENT_SWIZZLE_IDENTITY,                          // VkComponentSwizzle                   a;
+               },                                                                                      // VkComponentMapping                   components;
                {
                        aspectMask,                                                                     // VkImageAspectFlags                   aspectMask;
                        0u,                                                                                     // deUint32                                             baseMipLevel;