mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 10:50:26 +01:00
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> (cherry picked from commit28342a581f)
This commit is contained in:
parent
4bf6af791a
commit
175c92890d
2 changed files with 2 additions and 2 deletions
|
|
@ -1424,7 +1424,7 @@
|
|||
"description": "vulkan/wsi: Bind memory planes, not YCbCr planes.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "f5433e4d6ce247b86daed741c07aa99f2bd02c0d",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue