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>
(cherry picked from commit 4181e144ef)
This commit is contained in:
Friedrich Vock 2023-06-10 22:01:46 +02:00 committed by Eric Engestrom
parent 8cf5581e92
commit 880f738823
2 changed files with 2 additions and 2 deletions

View file

@ -2488,7 +2488,7 @@
"description": "radv: Always flush before writing acceleration structure properties",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -2213,7 +2213,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);