radv: Always flush before writing acceleration structure properties

Equivalent of 284e604872 but for acceleration structure queries.
If an app inserts a barrier between AS builds and writing AS properties,
we must respect it or things will blow up.

Cc: mesa-stable
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23568>
This commit is contained in:
Friedrich Vock 2023-06-10 22:01:46 +02:00 committed by Marge Bot
parent 31fb75a08b
commit 4181e144ef

View file

@ -2201,7 +2201,7 @@ radv_CmdWriteAccelerationStructuresPropertiesKHR(
radv_cs_add_buffer(cmd_buffer->device->ws, cs, pool->bo);
emit_query_flush(cmd_buffer, pool);
si_emit_cache_flush(cmd_buffer);
ASSERTED unsigned cdw_max =
radeon_check_space(cmd_buffer->device->ws, cs, 6 * accelerationStructureCount);