panvk: move pandecode_next_frame a bit earlier

Call pandecode_next_frame (to close the file stream) before validating
against queue->debug_syncobjs which may abort.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32341>
This commit is contained in:
Chia-I Wu
2024-11-24 14:12:38 -08:00
committed by Marge Bot
parent b078cacce5
commit a562047b60
+4 -3
View File
@@ -796,6 +796,10 @@ panvk_queue_submit_process_debug(const struct panvk_queue_submit *submit)
if (instance->debug_flags & PANVK_DEBUG_DUMP)
pandecode_dump_mappings(decode_ctx);
if (instance->debug_flags & PANVK_DEBUG_TRACE)
pandecode_next_frame(decode_ctx);
/* validate last after the command streams are dumped */
if (submit->force_sync) {
struct panvk_cs_sync32 *debug_syncs =
panvk_priv_mem_host_addr(queue->debug_syncobjs);
@@ -813,9 +817,6 @@ panvk_queue_submit_process_debug(const struct panvk_queue_submit *submit)
vk_queue_set_lost(&queue->vk, "Incomplete job or timeout");
}
}
if (instance->debug_flags & PANVK_DEBUG_TRACE)
pandecode_next_frame(decode_ctx);
}
static VkResult