i965/fs: Drop offset_reg temporary in ssbo load
authorKristian Høgsberg Kristensen <krh@bitplanet.net>
Thu, 22 Oct 2015 05:49:14 +0000 (22:49 -0700)
committerKristian Høgsberg Kristensen <krh@bitplanet.net>
Fri, 23 Oct 2015 16:42:28 +0000 (09:42 -0700)
commitfeff21d1a6ba49a0d6f7526e1ff473a0b574c92e
tree24fac23e4aaa847bfcfbdb87a3abfbc4b914cc03
parent0a5a738252afdd64b778024bcd130473b9a6224e
i965/fs: Drop offset_reg temporary in ssbo load

Now that we don't read each component one-by-one, we don't need the
temoprary vgrf for the offset. More importantly, this register was type
UD while the nir source was type D. This broke copy propagation and left
a redundant MOV in the generated code.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Kristian Høgsberg Kristensen <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp