svga: use dummy shaders when translation fails
authorBrian Paul <brianp@vmware.com>
Thu, 17 Nov 2011 23:40:02 +0000 (16:40 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 23 Feb 2012 14:49:06 +0000 (07:49 -0700)
commit8a9cad6384c61670e96165ad8c5f6ade927c6fa0
treed5c789f4187773517897fcb6950e9fd49a9fe1de
parent4516fcc57f8f45fc0e2e4d8681fd5d74e4f31d7d
svga: use dummy shaders when translation fails

Before, if shader translation failed for any reason we'd keep trying
to translate the shader over and over again during state validation.
The dummy fragment shader emits solid red so that might be visual
clue that translation is failing.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_state_fs.c
src/gallium/drivers/svga/svga_state_vs.c