From: Francisco Jerez Date: Fri, 2 Sep 2016 04:05:51 +0000 (-0700) Subject: i965/fs: Don't consider LOAD_PAYLOAD with sub-GRF offset to behave like a raw copy. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1164aa1a1ba9d140a2b1435703b0029e0fe69f6f;p=mesa.git i965/fs: Don't consider LOAD_PAYLOAD with sub-GRF offset to behave like a raw copy. This was likely the original intention, and at least register coalesce relies on it. Reviewed-by: Iago Toral Quiroga --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 375d73be5e9..c10579880b6 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -353,7 +353,7 @@ fs_inst::is_copy_payload(const brw::simple_allocator &grf_alloc) const return false; fs_reg reg = this->src[0]; - if (reg.file != VGRF || reg.offset / REG_SIZE != 0 || reg.stride == 0) + if (reg.file != VGRF || reg.offset != 0 || reg.stride == 0) return false; if (grf_alloc.sizes[reg.nr] * REG_SIZE != this->size_written)