mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
hasvk: Mark VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL as stencil write optimal
VK_KHR_synchronization2 added VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL, which was not previously recognized by vk_image_layout_stencil_write_optimal. Would close https://gitlab.freedesktop.org/mesa/mesa/-/issues/5578 if it wasn't already closed. Fixes:b996fa8efa("anv: implement VK_KHR_synchronization2") Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19876> (cherry picked from commitd3162f97b5)
This commit is contained in:
parent
7c90f3a42f
commit
02c243ede3
2 changed files with 5 additions and 2 deletions
|
|
@ -31,7 +31,7 @@
|
|||
"description": "hasvk: Mark VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL as stencil write optimal",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "b996fa8efaa42558bda2c52377561d7eb3c4127e"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -510,7 +510,8 @@ vk_image_layout_stencil_write_optimal(VkImageLayout layout)
|
|||
{
|
||||
return layout == VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL ||
|
||||
layout == VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL ||
|
||||
layout == VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL;
|
||||
layout == VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL ||
|
||||
layout == VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -541,6 +542,7 @@ transition_stencil_buffer(struct anv_cmd_buffer *cmd_buffer,
|
|||
* - VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL
|
||||
* - VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
|
||||
* - VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL
|
||||
* - VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL
|
||||
*
|
||||
* For general, we have no nice opportunity to transition so we do the copy
|
||||
* to the shadow unconditionally at the end of the subpass. For transfer
|
||||
|
|
@ -5724,6 +5726,7 @@ void genX(CmdEndRendering)(
|
|||
* - VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL
|
||||
* - VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
|
||||
* - VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL
|
||||
* - VK_IMAGE_LAYOUT_ATTACHMENT_OPTIMAL
|
||||
* - VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
|
||||
*
|
||||
* For general, we have no nice opportunity to transition so we do the copy
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue