OSDN Git Service

svga: fix varying var remapping for unused FS outputs
authorBrian Paul <brianp@vmware.com>
Fri, 4 Nov 2011 20:36:59 +0000 (14:36 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 4 Nov 2011 22:05:33 +0000 (16:05 -0600)
commit1ca48b3161449945b769b27c33f88f397f98084a
tree1ea64dd28f969978d98c35d11cb73fa70ae397ec
parent0bc15650c1cb4c9ae087f393447841f9da89e5e3
svga: fix varying var remapping for unused FS outputs

If the VS has outputs that aren't consumed by the FS we were mapping
them all to one unused VS output index, but that's illegal.  Instead,
map unused VS outputs to unique indexes.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_swtnl_state.c
src/gallium/drivers/svga/svga_tgsi.c
src/gallium/drivers/svga/svga_tgsi.h