mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
panvk/csf: Fix add_memory_dependency() for input attachment access
Input attachment reads are lowered to image reads and thus require a flush of the read-only L1 caches. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33056>
This commit is contained in:
parent
ff6e3e9f76
commit
c72379e506
1 changed files with 2 additions and 1 deletions
|
|
@ -326,7 +326,8 @@ add_memory_dependency(struct panvk_cache_flush_info *cache_flush,
|
|||
const VkAccessFlags2 ro_l1_access =
|
||||
VK_ACCESS_2_COLOR_ATTACHMENT_READ_BIT |
|
||||
VK_ACCESS_2_DEPTH_STENCIL_ATTACHMENT_READ_BIT |
|
||||
VK_ACCESS_2_TRANSFER_READ_BIT | VK_ACCESS_2_SHADER_SAMPLED_READ_BIT;
|
||||
VK_ACCESS_2_TRANSFER_READ_BIT | VK_ACCESS_2_SHADER_SAMPLED_READ_BIT |
|
||||
VK_ACCESS_2_INPUT_ATTACHMENT_READ_BIT;
|
||||
|
||||
/* visibility op */
|
||||
if (dst_access & ro_l1_access)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue