vulkan/wsi: Bind memory planes, not YCbCr planes.

Reviewed-by: Joshua Ashton <joshua@froggi.es>
Fixes: f5433e4d6c ("vulkan/wsi: Add modifiers support to wsi_create_native_image")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10176
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24795>
This commit is contained in:
Faith Ekstrand 2024-02-13 22:35:50 -06:00 committed by Marge Bot
parent cd428e01d7
commit 28342a581f

View file

@ -718,7 +718,7 @@ wsi_create_native_image_mem(const struct wsi_swapchain *chain,
for (uint32_t p = 0; p < image->num_planes; p++) {
const VkImageSubresource image_subresource = {
.aspectMask = VK_IMAGE_ASPECT_PLANE_0_BIT << p,
.aspectMask = VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT << p,
.mipLevel = 0,
.arrayLayer = 0,
};