From 9a0c883292cf48910a32634f7cc8b855e08c09d5 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 25 Jun 2015 11:00:01 -0700 Subject: [PATCH] i965/fs: Use the builder dispatch_width for computing register offsets Reviewed-by: Topi Pohjolainen Reviewed-by: Francisco Jerez --- src/mesa/drivers/dri/i965/brw_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index ece7e49..88a50ae 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; -- 2.7.4