mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-20 05:30:33 +01:00
tu: Fix segfault in fail_submit KGSL path
Fixes: ec268fa5b6 ("tu/kgsl: Support u_trace and perfetto")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34749>
This commit is contained in:
parent
103a16e4fa
commit
9dfd4a091c
1 changed files with 1 additions and 1 deletions
|
|
@ -1328,7 +1328,7 @@ kgsl_queue_submit(struct tu_queue *queue, void *_submit,
|
|||
}
|
||||
|
||||
fail_submit:
|
||||
if (result != VK_SUCCESS) {
|
||||
if (result != VK_SUCCESS && u_trace_submission_data) {
|
||||
mtx_lock(&queue->device->kgsl_profiling_mutex);
|
||||
tu_suballoc_bo_free(&queue->device->kgsl_profiling_suballoc,
|
||||
&u_trace_submission_data->kgsl_timestamp_bo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue