mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
radv: Always flush before writing acceleration structure properties
Equivalent of284e604872but 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 commit4181e144ef)
This commit is contained in:
parent
8cf5581e92
commit
880f738823
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue