r300g: revisit some assertions and fix potential failures
authorMarek Olšák <maraeo@gmail.com>
Sun, 11 Apr 2010 06:28:39 +0000 (08:28 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sun, 11 Apr 2010 08:15:50 +0000 (10:15 +0200)
commit146879284c6b844f35afe3a3ef3330726afbe8ac
tree92c54f39089b1dcc54d7b5916778c07e60c08472
parent08afcaa56e187cdd137a5c6581c265c1a0fc8d18
r300g: revisit some assertions and fix potential failures

* Turn some assertions to error messages.
* At most 16 vertex elements can be set, others are ignored.
* Rasterize at most 8 vertex-shader generic outputs, others are ignored.
  This includes fog and WPOS.
* Unknown shader semantic names are ignored.
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_fs.c
src/gallium/drivers/r300/r300_render.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_vs.c