svga: fix register collision issue in emit_conditional()
authorBrian Paul <brianp@vmware.com>
Tue, 3 Jul 2012 21:51:22 +0000 (15:51 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 5 Jul 2012 14:03:19 +0000 (08:03 -0600)
commit0bd3a75de9002e73214cde883691da558db7bc70
tree7f166b30d4827267383ac2e93ef6f4492ca89a3f
parent9b3d87b0924a3d19b99b2ceb2ae55dd74c9088a7
svga: fix register collision issue in emit_conditional()

If the 'dst' register is the same as the 'pass' register we'll generate
invalid code.  Use a temporary register in that case.

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