From c8ef82d65a2c563c1dbafb2a252aca230ab9d1c7 Mon Sep 17 00:00:00 2001 From: Charmaine Lee Date: Thu, 1 Sep 2016 13:40:34 -0700 Subject: svga: add SVGA3d_vgpu10_TransferFromBuffer() Also add the corresponding dump function to dump the TransferFromBuffer command. Reviewed-by: Brian Paul --- src/gallium/drivers/svga/svgadump/svga_dump.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gallium/drivers/svga/svgadump') diff --git a/src/gallium/drivers/svga/svgadump/svga_dump.c b/src/gallium/drivers/svga/svgadump/svga_dump.c index 5dc731a82e4..c8e6856f170 100644 --- a/src/gallium/drivers/svga/svgadump/svga_dump.c +++ b/src/gallium/drivers/svga/svgadump/svga_dump.c @@ -2030,6 +2030,17 @@ SVGA3D_DUMP_HEADER(GenMips) SVGA3D_DUMP_PARAMETER(shaderResourceViewId, u); } +SVGA3D_DUMP_HEADER(TransferFromBuffer) +{ + SVGA3D_DUMP_PARAMETER(srcSid, u); + SVGA3D_DUMP_PARAMETER(srcOffset, u); + SVGA3D_DUMP_PARAMETER(srcPitch, u); + SVGA3D_DUMP_PARAMETER(srcSlicePitch, u); + SVGA3D_DUMP_PARAMETER(destSid, u); + SVGA3D_DUMP_PARAMETER(destSubResource, u); + dump_SVGA3dBox(&cmd->destBox); +} + static void dump_SVGA3dCmdInvalidateGBSurface(const SVGA3dCmdInvalidateGBSurface *cmd) { @@ -2130,6 +2141,7 @@ svga_dump_command(uint32_t cmd_id, const void *data, uint32_t size) SVGA3D_DUMP_CASE_BASIC(BufferCopy, BUFFER_COPY); SVGA3D_DUMP_CASE_BASIC(BufferUpdate, BUFFER_UPDATE); SVGA3D_DUMP_CASE_BASIC(GenMips, GENMIPS); + SVGA3D_DUMP_CASE_BASIC(TransferFromBuffer, TRANSFER_FROM_BUFFER); case SVGA_3D_CMD_DX_SET_RENDERTARGETS: _debug_printf("\tSVGA_3D_CMD_DX_SET_RENDERTARGETS\n"); -- cgit v1.2.3