mirror of https://gitlab.freedesktop.org/mesa/mesa
panvk: Abort on fault when PANVK_DEBUG=sync
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28417>
This commit is contained in:
parent
9a8dae1bf8
commit
d49ca71554
|
@ -80,6 +80,10 @@ panvk_queue_submit_batch(struct panvk_queue *queue, struct panvk_batch *batch,
|
|||
phys_dev->kmod.props.gpu_prod_id);
|
||||
}
|
||||
|
||||
if (debug & PANVK_DEBUG_SYNC)
|
||||
pandecode_abort_on_fault(dev->debug.decode_ctx, submit.jc,
|
||||
phys_dev->kmod.props.gpu_prod_id);
|
||||
|
||||
if (debug & PANVK_DEBUG_DUMP)
|
||||
pandecode_dump_mappings(dev->debug.decode_ctx);
|
||||
}
|
||||
|
@ -115,6 +119,10 @@ panvk_queue_submit_batch(struct panvk_queue *queue, struct panvk_batch *batch,
|
|||
|
||||
if (debug & PANVK_DEBUG_DUMP)
|
||||
pandecode_dump_mappings(dev->debug.decode_ctx);
|
||||
|
||||
if (debug & PANVK_DEBUG_SYNC)
|
||||
pandecode_abort_on_fault(dev->debug.decode_ctx, submit.jc,
|
||||
phys_dev->kmod.props.gpu_prod_id);
|
||||
}
|
||||
|
||||
if (debug & PANVK_DEBUG_TRACE)
|
||||
|
|
Loading…
Reference in New Issue