i965/fs: Fix lower_load_payload() to take into account non-zero reg_offset.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 6 Feb 2015 13:06:05 +0000 (15:06 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 23 Feb 2015 18:55:40 +0000 (20:55 +0200)
commitea7b4d25c8da352f4ca0dcaefa4fadb9e202636e
tree3add7b413c7a4e19487bbe43fcc51d0eea618b2a
parent08b4c8f7bf2cc2fe914a07a32bf4961894593e72
i965/fs: Fix lower_load_payload() to take into account non-zero reg_offset.

Fixes metadata guess when instructions in the program specify a
destination register with non-zero reg_offset and when the payload of
a LOAD_PAYLOAD spans several registers.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp