Commit e63aa953 by Nicolas Capens Committed by Nicolas Capens

Don't assert on component swizzle matching identity

https://gitlab.khronos.org/vulkan/vulkan/-/merge_requests/3399 clarified that when identity component swizzle is expected, one can also use the corresponding component enum. Fixes: b/167706626 Change-Id: I2c94f6ac108be5269d56f397ecf3da58cd310e5e Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/48168Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarSean Risser <srisser@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com>
parent 2c5b4455
...@@ -1757,10 +1757,10 @@ VKAPI_ATTR VkResult VKAPI_CALL vkCreateImageView(VkDevice device, const VkImageV ...@@ -1757,10 +1757,10 @@ VKAPI_ATTR VkResult VKAPI_CALL vkCreateImageView(VkDevice device, const VkImageV
if(ycbcrConversion) if(ycbcrConversion)
{ {
ASSERT((pCreateInfo->components.r == VK_COMPONENT_SWIZZLE_IDENTITY) && ASSERT((pCreateInfo->components.r == VK_COMPONENT_SWIZZLE_IDENTITY || pCreateInfo->components.r == VK_COMPONENT_SWIZZLE_R) &&
(pCreateInfo->components.g == VK_COMPONENT_SWIZZLE_IDENTITY) && (pCreateInfo->components.g == VK_COMPONENT_SWIZZLE_IDENTITY || pCreateInfo->components.g == VK_COMPONENT_SWIZZLE_G) &&
(pCreateInfo->components.b == VK_COMPONENT_SWIZZLE_IDENTITY) && (pCreateInfo->components.b == VK_COMPONENT_SWIZZLE_IDENTITY || pCreateInfo->components.b == VK_COMPONENT_SWIZZLE_B) &&
(pCreateInfo->components.a == VK_COMPONENT_SWIZZLE_IDENTITY)); (pCreateInfo->components.a == VK_COMPONENT_SWIZZLE_IDENTITY || pCreateInfo->components.a == VK_COMPONENT_SWIZZLE_A));
} }
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment