svga: check that we don't exceed temp register limit
authorBrian Paul <brianp@vmware.com>
Thu, 17 Nov 2011 23:36:26 +0000 (16:36 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 23 Feb 2012 14:49:05 +0000 (07:49 -0700)
commitf12f67c00a5a75ec58bef14f3cecda6c4c685727
treec64311aef3c0e652baf86b49c91a974bd18a99a1
parenta1482b21cb438c271cf20e7d52cb9e4e0537344c
svga: check that we don't exceed temp register limit

And assert on the register index in dst_register().  The dest can
only be an output or temp reg and there's more of the later.

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