Commit 9f2dd0d0 by Nicolas Capens Committed by Nicolas Capens

Fix taking aspect into account for image view identifiers

Tests like dEQP.GLES3/functional_fbo_blit_depth_stencil_depth24_stencil8_basic were not passing when running on SWANGLE. Bug: b/151235334 Change-Id: Icc3c4709a50c96d4552af4e4835f1e5eb43dd653 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/43028 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent b138adb7
...@@ -86,7 +86,7 @@ ImageView::ImageView(const VkImageViewCreateInfo *pCreateInfo, void *mem, const ...@@ -86,7 +86,7 @@ ImageView::ImageView(const VkImageViewCreateInfo *pCreateInfo, void *mem, const
, components(ResolveComponentMapping(pCreateInfo->components, format)) , components(ResolveComponentMapping(pCreateInfo->components, format))
, subresourceRange(ResolveRemainingLevelsLayers(pCreateInfo->subresourceRange, image)) , subresourceRange(ResolveRemainingLevelsLayers(pCreateInfo->subresourceRange, image))
, ycbcrConversion(ycbcrConversion) , ycbcrConversion(ycbcrConversion)
, id(image, viewType, format, components) , id(image, viewType, format.getAspectFormat(subresourceRange.aspectMask), components)
{ {
} }
......
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