panvk: Fix tracing

pandecode_next_frame() take a decode context. Passing NULL leads to a
NULL deref.

Fixes: 56be9a55be ("pan/decode: handle more than one panfrost_device")
Cc: mesa-stable
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Constantine Shablya <constantine.shablya@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27107>
(cherry picked from commit 35a02560c8)
This commit is contained in:
Boris Brezillon 2023-12-18 14:49:14 +01:00 committed by Eric Engestrom
parent 1246e54f1c
commit b65d7520f6
2 changed files with 2 additions and 2 deletions

View file

@ -164,7 +164,7 @@
"description": "panvk: Fix tracing",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "56be9a55be03cce9925989e7d22696733488e05b",
"notes": null

View file

@ -121,7 +121,7 @@ panvk_queue_submit_batch(struct panvk_queue *queue, struct panvk_batch *batch,
}
if (debug & PANVK_DEBUG_TRACE)
pandecode_next_frame(0);
pandecode_next_frame(pdev->decode_ctx);
batch->issued = true;
}