mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
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:
parent
31fb75a08b
commit
4181e144ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue