i965: Don't set UIP for ENDIF/WHILE.
authorMatt Turner <mattst88@gmail.com>
Tue, 17 Jun 2014 19:14:05 +0000 (12:14 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Jun 2014 18:46:19 +0000 (11:46 -0700)
commita382b4cb7aab046ce80140973f07bac71451b9ef
tree6c9f727b4b57ddf5c3358f7e8c2b078697d1e6df
parent92233aee47a0c7debfd2db5242fa8792e4c9db07
i965: Don't set UIP for ENDIF/WHILE.

They don't have a UIP. We used UIP in an array dereference, which never
caused problems on Gen < 8, since UIP was a small integer (number of
instructions). On Gen 8 UIP is in bytes, so it's large enough that it
caused us to read out of bounds of the array.

Signed-off-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_compact.c