i965: Set the type of the null register to fix gen6 FS comparisons.
authorEric Anholt <eric@anholt.net>
Fri, 15 Oct 2010 19:04:52 +0000 (12:04 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 15 Oct 2010 20:13:56 +0000 (13:13 -0700)
commit81d0a1fb3f1e5b7bcf43145f8a096691e3a5fdfb
tree253ff6c595ac44a9e491015c136d120b37e3cfb2
parent20b39c7760487bae73489b9812408e12d1d56dd5
i965: Set the type of the null register to fix gen6 FS comparisons.

We often use reg_null as the destination when setting up the flag
regs.  However, on gen6 there aren't general implicit conversions to
destination types from src types, so the comparison to produce the
flag regs would be done on the integer result interpreted as a float.
Hilarity ensued.

Fixes 20 piglit cases.
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h