mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 23:40:12 +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> (cherry picked from commit9dfd4a091c)
This commit is contained in:
parent
9a7b130479
commit
13d50cfb54
2 changed files with 2 additions and 2 deletions
|
|
@ -6064,7 +6064,7 @@
|
|||
"description": "tu: Fix segfault in fail_submit KGSL path",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "ec268fa5b666a49adafc431dbc05b73bfd74526e",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1296,7 +1296,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