summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/include
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-01-31 17:23:11 -0700
committerBrian Paul <[email protected]>2014-02-03 12:40:13 -0700
commit97fdace6d70b6499d0490cd6ca2a4253284b386d (patch)
tree4cde216c693890b17c9bfd56ce126c10f7fb7086 /src/gallium/drivers/svga/include
parent4686f610b18a04bc6213ccadf7be1176bbda3e34 (diff)
svga: check shader size against max command buffer size
If the shader is too large, plug in a dummy shader. This patch also reworks the existing dummy shader code. Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/include')
-rw-r--r--src/gallium/drivers/svga/include/svga_reg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/include/svga_reg.h b/src/gallium/drivers/svga/include/svga_reg.h
index 1b96c2ec07d..dee719d2418 100644
--- a/src/gallium/drivers/svga/include/svga_reg.h
+++ b/src/gallium/drivers/svga/include/svga_reg.h
@@ -889,6 +889,7 @@ typedef enum {
} SVGAFifoCmdId;
#define SVGA_CMD_MAX_ARGS 64
+#define SVGA_CB_MAX_COMMAND_SIZE (32 * 1024) // 32 KB
/*