i965/fs: don't make unused payload registers interfere
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 30 Jun 2015 20:42:15 +0000 (13:42 -0700)
committerConnor Abbott <connor.w.abbott@intel.com>
Fri, 17 Jul 2015 17:10:57 +0000 (10:10 -0700)
commitbde4c8ec1fd69e312fe21e36c8ce07139916811a
tree04bf52875bd6331007d551dcf453981d6f781d88
parent18e73bf7f8b12022e02db3230ee109657581900b
i965/fs: don't make unused payload registers interfere

Before, we were setting payload_last_use_ip for unused payload
registers to 0, which made them interfere with whatever the first
instruction wrote to due to the workaround for SIMD16 uniform arguments.
Just use -1 to mean "unused" instead, and then skip setting any
interferences for unused payload registers.

instructions in affected programs:     0 -> 0
helped:                                0
HURT:                                  0
GAINED:                                1
LOST:                                  0

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Connor Abbott <connor.w.abbott@intel.com>
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp