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.
image, // VkImage image;
viewType, // VkImageViewType viewType;
format, // VkFormat format;
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;
{
aspectMask, // VkImageAspectFlags aspectMask;
0u, // deUint32 baseMipLevel;