From: Jason Ekstrand Date: Thu, 25 Jun 2015 18:00:01 +0000 (-0700) Subject: i965/fs: Use the builder dispatch_width for computing register offsets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a0c883292cf48910a32634f7cc8b855e08c09d5;p=mesa.git i965/fs: Use the builder dispatch_width for computing register offsets Reviewed-by: Topi Pohjolainen Reviewed-by: Francisco Jerez --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index ece7e49ea17..88a50ae0913 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -72,7 +72,7 @@ offset(fs_reg reg, const brw::fs_builder& bld, unsigned delta) case MRF: case ATTR: return byte_offset(reg, - delta * MAX2(reg.width * reg.stride, 1) * + delta * MAX2(bld.dispatch_width() * reg.stride, 1) * type_sz(reg.type)); case UNIFORM: reg.reg_offset += delta;