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:
@@ -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
|
||||
******************************************************************************/
|
||||
|
Reference in New Issue
Block a user