mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 23:10:11 +01:00
anv/hasvk: handle a SAMPLED_READ/STORAGE_READ access flags
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: mesa-stable Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21277>
This commit is contained in:
parent
96849363eb
commit
eb5d7056e0
2 changed files with 4 additions and 0 deletions
|
|
@ -2273,6 +2273,7 @@ anv_pipe_invalidate_bits_for_access_flags(struct anv_device *device,
|
|||
case VK_ACCESS_2_SHADER_READ_BIT:
|
||||
case VK_ACCESS_2_INPUT_ATTACHMENT_READ_BIT:
|
||||
case VK_ACCESS_2_TRANSFER_READ_BIT:
|
||||
case VK_ACCESS_2_SHADER_SAMPLED_READ_BIT:
|
||||
/* Transitioning a buffer to be read through the sampler, so
|
||||
* invalidate the texture cache, we don't want any stale data.
|
||||
*/
|
||||
|
|
@ -2316,6 +2317,7 @@ anv_pipe_invalidate_bits_for_access_flags(struct anv_device *device,
|
|||
*/
|
||||
pipe_bits |= ANV_PIPE_TILE_CACHE_FLUSH_BIT;
|
||||
break;
|
||||
case VK_ACCESS_2_SHADER_STORAGE_READ_BIT:
|
||||
default:
|
||||
break; /* Nothing to do */
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2202,6 +2202,7 @@ anv_pipe_invalidate_bits_for_access_flags(struct anv_device *device,
|
|||
case VK_ACCESS_2_SHADER_READ_BIT:
|
||||
case VK_ACCESS_2_INPUT_ATTACHMENT_READ_BIT:
|
||||
case VK_ACCESS_2_TRANSFER_READ_BIT:
|
||||
case VK_ACCESS_2_SHADER_SAMPLED_READ_BIT:
|
||||
/* Transitioning a buffer to be read through the sampler, so
|
||||
* invalidate the texture cache, we don't want any stale data.
|
||||
*/
|
||||
|
|
@ -2245,6 +2246,7 @@ anv_pipe_invalidate_bits_for_access_flags(struct anv_device *device,
|
|||
*/
|
||||
pipe_bits |= ANV_PIPE_TILE_CACHE_FLUSH_BIT;
|
||||
break;
|
||||
case VK_ACCESS_2_SHADER_STORAGE_READ_BIT:
|
||||
default:
|
||||
break; /* Nothing to do */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue