mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 17:40:25 +01:00
dzn: handle stencil-attachment-optimal layout
We missed this one, whoops. Fixes:a012b21964("microsoft: Initial vulkan-on-12 driver") Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16997> (cherry picked from commit4ab49e2530)
This commit is contained in:
parent
29dac89446
commit
2bd2df1aec
2 changed files with 2 additions and 1 deletions
|
|
@ -1633,7 +1633,7 @@
|
|||
"description": "dzn: handle stencil-attachment-optimal layout",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "a012b219640e875aa552b37dfdaf69336d5863c7"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -530,6 +530,7 @@ dzn_image_layout_to_state(VkImageLayout layout, VkImageAspectFlagBits aspect)
|
|||
|
||||
case VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL:
|
||||
case VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL:
|
||||
case VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL:
|
||||
return D3D12_RESOURCE_STATE_DEPTH_WRITE;
|
||||
|
||||
case VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue