tgsi: move register checking code before check_register_usage()
authorBrian Paul <brianp@vmware.com>
Thu, 7 Jan 2010 17:54:56 +0000 (10:54 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 7 Jan 2010 17:55:00 +0000 (10:55 -0700)
commit16b5d2eba3b5ccb56c26c0d1c66763f99f1ad191
tree94e63105f30a93176dddb69d7e32520f83d20e38
parentb841c2756e6d697d5b2884317c0daa3f176195a6
tgsi: move register checking code before check_register_usage()

check_register_usage() frees the scan_register *reg data so we were
reading from freed memory.  This fixes a valgrind error found with
piglit's glsl-vs-mov-after-deref test.
src/gallium/auxiliary/tgsi/tgsi_sanity.c