anv: flush data cache before emitting availability

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23814>
This commit is contained in:
Iván Briano 2023-06-12 16:38:31 -07:00 committed by Marge Bot
parent 6535b0c0ea
commit bafbfc57ea

View file

@ -1894,8 +1894,12 @@ genX(CmdWriteAccelerationStructuresPropertiesKHR)(
}
}
/* TODO: Figure out why MTL needs ANV_PIPE_DATA_CACHE_FLUSH_BIT in order
* to not lose the availability bit.
*/
anv_add_pending_pipe_bits(cmd_buffer,
ANV_PIPE_END_OF_PIPE_SYNC_BIT,
ANV_PIPE_END_OF_PIPE_SYNC_BIT |
ANV_PIPE_DATA_CACHE_FLUSH_BIT,
"after write acceleration struct props");
genX(cmd_buffer_apply_pipe_flushes)(cmd_buffer);