summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-06-25 11:00:01 -0700
committerJason Ekstrand <[email protected]>2015-06-30 16:13:51 -0700
commit9a0c883292cf48910a32634f7cc8b855e08c09d5 (patch)
treedc6afc6106cfde0b714867ade0bd8ffc69cee575 /src/mesa
parent21803b7b3304f053a48e313951ffddf1d2cd0bd9 (diff)
i965/fs: Use the builder dispatch_width for computing register offsets
Reviewed-by: Topi Pohjolainen <[email protected]> Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.h2
1 files changed, 1 insertions, 1 deletions
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;