intel/fs: Properly handle 64-bit types in LOAD_PAYLOAD
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Nov 2018 04:38:23 +0000 (22:38 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Feb 2019 22:10:57 +0000 (16:10 -0600)
commit79724a07562dae79f00005b61bda4664287989ee
tree99117906d9d30c626f1ff1971326eb2453b0cae8
parentf02914a991a19de6a54e45d760eb9de8f4bbae46
intel/fs: Properly handle 64-bit types in LOAD_PAYLOAD

By just assigning dst.type to src[i].type, we ensure that the offset at
the end of the loop actually offsets it by the right number of
registers.  Otherwise, we'll get into a case where we copy with a Q type
and then offset with a D type and things get out of sync.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_fs_cse.cpp