i965/fs: Properly precolor payload registers on GEN5 in SIMD16
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 14 Oct 2014 02:41:17 +0000 (19:41 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 24 Oct 2014 23:23:54 +0000 (16:23 -0700)
commitee65f2b50d5a411e05fb4e0dbe26766a47305b59
tree0813e2bc6447a0a05413f9f54956d8fc315f2e59
parent1988b7165567f19f3439514625adf8ed6ccf3b62
i965/fs: Properly precolor payload registers on GEN5 in SIMD16

For GEN6 SIMD16 mode, we have to 2-align all the registers, so we only have
the even-numbered ones.  This means that we have to divide the register
number by 2 when we precolor.  This wasn't a problem before because we were
setting up the interference between ra_node registers wrong.  This will be
fixed in the next commit.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp