mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
radv: fix destroying GDS/OA BOs
Otherwise, we have dangling BO pointers in the global BO list. Not quite sure why this hasn't been triggered before. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25623>
This commit is contained in:
parent
731e682cc0
commit
7c7684c656
1 changed files with 2 additions and 2 deletions
|
|
@ -1822,12 +1822,12 @@ radv_queue_state_finish(struct radv_queue_state *queue, struct radv_device *devi
|
|||
device->ws->buffer_destroy(device->ws, queue->attr_ring_bo);
|
||||
}
|
||||
if (queue->gds_bo) {
|
||||
device->ws->buffer_destroy(device->ws, queue->gds_bo);
|
||||
device->ws->buffer_make_resident(device->ws, queue->gds_bo, false);
|
||||
device->ws->buffer_destroy(device->ws, queue->gds_bo);
|
||||
}
|
||||
if (queue->gds_oa_bo) {
|
||||
device->ws->buffer_destroy(device->ws, queue->gds_oa_bo);
|
||||
device->ws->buffer_make_resident(device->ws, queue->gds_oa_bo, false);
|
||||
device->ws->buffer_destroy(device->ws, queue->gds_oa_bo);
|
||||
}
|
||||
if (queue->compute_scratch_bo) {
|
||||
radv_rmv_log_command_buffer_bo_destroy(device, queue->compute_scratch_bo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue