mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 07:48:07 +02:00
panvk: Add PANVK_DEBUG_DUMP dump mappings
Signed-off-by: Manas Chaudhary <manas.chaudhary@collabora.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16072>
This commit is contained in:
parent
db69218cbe
commit
9ac5adc0bc
3 changed files with 8 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ static const struct debug_control panvk_debug_options[] = {
|
|||
{ "sync", PANVK_DEBUG_SYNC },
|
||||
{ "afbc", PANVK_DEBUG_AFBC },
|
||||
{ "linear", PANVK_DEBUG_LINEAR },
|
||||
{ "dump", PANVK_DEBUG_DUMP },
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -202,6 +202,7 @@ enum panvk_debug_flags {
|
|||
PANVK_DEBUG_SYNC = 1 << 3,
|
||||
PANVK_DEBUG_AFBC = 1 << 4,
|
||||
PANVK_DEBUG_LINEAR = 1 << 5,
|
||||
PANVK_DEBUG_DUMP = 1 << 6,
|
||||
};
|
||||
|
||||
struct panvk_instance {
|
||||
|
|
|
|||
|
|
@ -88,6 +88,9 @@ panvk_queue_submit_batch(struct panvk_queue *queue,
|
|||
|
||||
if (debug & PANVK_DEBUG_TRACE)
|
||||
GENX(pandecode_jc)(batch->scoreboard.first_job, pdev->gpu_id);
|
||||
|
||||
if (debug & PANVK_DEBUG_DUMP)
|
||||
pandecode_dump_mappings();
|
||||
}
|
||||
|
||||
if (batch->fragment_job) {
|
||||
|
|
@ -116,6 +119,9 @@ panvk_queue_submit_batch(struct panvk_queue *queue,
|
|||
|
||||
if (debug & PANVK_DEBUG_TRACE)
|
||||
GENX(pandecode_jc)(batch->fragment_job, pdev->gpu_id);
|
||||
|
||||
if (debug & PANVK_DEBUG_DUMP)
|
||||
pandecode_dump_mappings();
|
||||
}
|
||||
|
||||
if (debug & PANVK_DEBUG_TRACE)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue