intel/fs: Fix unused texture coordinate zeroing on Gen4-5
authorJason Ekstrand <jason@jlekstrand.net>
Sun, 26 Apr 2020 14:48:16 +0000 (09:48 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Sat, 30 May 2020 06:08:50 +0000 (01:08 -0500)
commit94aa7997e45b5314d169bbee5bf22ad368c2fd25
tree9ee8912b654b9f0af700d2e6ef87fb5f9956c373
parenta7c8811fe4012b60a9bcdb2ea2ef6ab79e402809
intel/fs: Fix unused texture coordinate zeroing on Gen4-5

We were inserting the right number of MOVs but, thanks to the way we
advanced msg_end earlier in the function, were often writing the zeros
past the end of where we actually read in the register file.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5243>
src/intel/compiler/brw_fs.cpp