svga: check shader size against max command buffer size
authorBrian Paul <brianp@vmware.com>
Sat, 1 Feb 2014 00:23:11 +0000 (17:23 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 3 Feb 2014 19:40:13 +0000 (12:40 -0700)
commit97fdace6d70b6499d0490cd6ca2a4253284b386d
tree4cde216c693890b17c9bfd56ce126c10f7fb7086
parent4686f610b18a04bc6213ccadf7be1176bbda3e34
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 <jfonseca@vmware.com>
src/gallium/drivers/svga/include/svga_reg.h
src/gallium/drivers/svga/svga_state_fs.c