i965/fs: Less broken handling of force_writemask_all in lower_load_payload().
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 17 Jan 2015 12:12:34 +0000 (14:12 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 23 Feb 2015 18:55:40 +0000 (20:55 +0200)
commit8e47f51a5a7aba2bb56e7185988072431444d811
treeef4741d8b956e00f42aecc6020bac74ca4ad83d9
parent57d80d11b1ecc45dc38c1fbf3d92413fa847a513
i965/fs: Less broken handling of force_writemask_all in lower_load_payload().

It's perfectly fine to read the second half of a register written with
force_writemask_all from a first half MOV instruction or vice versa, and
lower_load_payload shouldn't mark the whole MOV as belonging to the second
half in that case.  Replicate the same metadata to both halves of the
destination when writemasking is disabled.

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