From: Connor Abbott Date: Tue, 11 Aug 2015 21:10:46 +0000 (-0700) Subject: i965/fs: fix is_copy_payload() for doubles X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b6d68ae0786e456faa828a7eaf76c981c44b1cb;p=mesa.git i965/fs: fix is_copy_payload() for doubles v2 (Sam): - LOAD_PAYLOAD treats each header source as a 32B block regardless of the datatype. Drop the change (Curro) Reviewed-by: Kenneth Graunke Reviewed-by: Jordan Justen --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 6eae49fdf4a..96610ba4328 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -374,7 +374,7 @@ fs_inst::is_copy_payload(const brw::simple_allocator &grf_alloc) const if (i < this->header_size) { reg.reg_offset += 1; } else { - reg.reg_offset += this->exec_size / 8; + reg = horiz_offset(reg, this->exec_size); } }