i965: fix bug in pass0_precalc_mov()
authorBrian Paul <brianp@vmware.com>
Thu, 29 Jan 2009 00:01:34 +0000 (17:01 -0700)
committerAlan Hourihane <alanh@vmware.com>
Thu, 29 Jan 2009 00:59:54 +0000 (00:59 +0000)
commit80b37673846e9eea7917c761c8d97687a07cf964
tree2e77669f5bdd1da130761a962bec37679a8ea9db
parent477c1820a0a4b0a438e8f36ea6ac498ef53d07e1
i965: fix bug in pass0_precalc_mov()

Previously, "in-place" swizzles such as:
   MOV t, t.xxyx;
were handled incorrectly.  Fixed by splitting the one loop into two loops so we
get all the refs before assigning them (to avoid potential clobbering).

(cherry picked from master/commit faa48915d27634a12f123eaa6e954ec79565e365)
src/mesa/drivers/dri/i965/brw_wm_pass0.c