summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svgadump
diff options
context:
space:
mode:
authorNeha Bhende <[email protected]>2017-03-06 15:53:58 -0800
committerBrian Paul <[email protected]>2018-09-05 11:22:42 -0600
commit6b3627da08997701b837dfb166eb0fb35a6312ee (patch)
tree4114c3a55e28facffe2bb11178184a6653596a5b /src/gallium/drivers/svga/svgadump
parentbac94dfefa8f6614b6243d68def7c9beab04ec66 (diff)
svga: Add SVGA3dCmdIntraSurfaceCopy command support in OpenGL driver
v2: changes as per Charmaine's comment Reviewed-by: Charmaine Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svgadump')
-rw-r--r--src/gallium/drivers/svga/svgadump/svga_dump.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svgadump/svga_dump.c b/src/gallium/drivers/svga/svgadump/svga_dump.c
index c8e6856f170..e93bb58de71 100644
--- a/src/gallium/drivers/svga/svgadump/svga_dump.c
+++ b/src/gallium/drivers/svga/svgadump/svga_dump.c
@@ -2042,6 +2042,15 @@ SVGA3D_DUMP_HEADER(TransferFromBuffer)
}
static void
+dump_SVGA3dCmdIntraSurfaceCopy(const SVGA3dCmdIntraSurfaceCopy *cmd)
+{
+ SVGA3D_DUMP_PARAMETER(surface.sid, u);
+ SVGA3D_DUMP_PARAMETER(surface.face, u);
+ SVGA3D_DUMP_PARAMETER(surface.mipmap, u);
+ dump_SVGA3dCopyBox(&cmd->box);
+}
+
+static void
dump_SVGA3dCmdInvalidateGBSurface(const SVGA3dCmdInvalidateGBSurface *cmd)
{
SVGA3D_DUMP_PARAMETER(sid, u);
@@ -2559,6 +2568,14 @@ svga_dump_command(uint32_t cmd_id, const void *data, uint32_t size)
body = (const uint8_t *)&cmd[1];
}
break;
+ case SVGA_3D_CMD_INTRA_SURFACE_COPY:
+ _debug_printf("\tSVGA_3D_CMD_INTRA_SURFACE_COPY\n");
+ {
+ const SVGA3dCmdIntraSurfaceCopy *cmd = (const SVGA3dCmdIntraSurfaceCopy *)body;
+ dump_SVGA3dCmdIntraSurfaceCopy(cmd);
+ body = (const uint8_t *)&cmd[1];
+ }
+ break;
default:
_debug_printf("\t0x%08x\n", cmd_id);
break;