mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 07:50:20 +01:00
zink: correctly use GENERAL layout for dynamic texture clears
missed this case
Fixes: 622612f67e ("zink: hook up global GENERAL image layouts")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39318>
This commit is contained in:
parent
d19ea686d3
commit
cf9c23a5e2
1 changed files with 4 additions and 1 deletions
|
|
@ -455,7 +455,10 @@ zink_clear_texture_dynamic(struct pipe_context *pctx,
|
|||
VkRenderingAttachmentInfo att = {0};
|
||||
att.sType = VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_INFO;
|
||||
att.imageView = surf->image_view;
|
||||
att.imageLayout = res->aspect & VK_IMAGE_ASPECT_COLOR_BIT ? VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL : VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
|
||||
if (screen->driver_workarounds.general_layout)
|
||||
att.imageLayout = VK_IMAGE_LAYOUT_GENERAL;
|
||||
else
|
||||
att.imageLayout = res->aspect & VK_IMAGE_ASPECT_COLOR_BIT ? VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL : VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
|
||||
att.loadOp = full_clear ? VK_ATTACHMENT_LOAD_OP_CLEAR : VK_ATTACHMENT_LOAD_OP_LOAD;
|
||||
att.storeOp = VK_ATTACHMENT_STORE_OP_STORE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue