pvr: debug: Add "cs" debug option to dump control stream on job submit

With PVR_DEBUG=cs, the control stream will be dumped to stderr
immediately prior to every render or compute job submission.

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18948>
This commit is contained in:
Matt Coster
2022-06-29 09:47:33 +01:00
committed by Marge Bot
parent 0432015265
commit f9a234ef04
18 changed files with 2250 additions and 13 deletions

View File

@@ -31,6 +31,21 @@
#include "rogue/rogue.h"
#include "util/macros.h"
static const char *
pvr_cmd_stream_type_to_str(const enum pvr_cmd_stream_type stream_type)
{
switch (stream_type) {
case PVR_CMD_STREAM_TYPE_INVALID:
return "INVALID";
case PVR_CMD_STREAM_TYPE_GRAPHICS:
return "GRAPHICS";
case PVR_CMD_STREAM_TYPE_COMPUTE:
return "COMPUTE";
default:
return NULL;
}
}
/******************************************************************************
CR
******************************************************************************/