summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.h
diff options
context:
space:
mode:
authorConnor Abbott <connor.w.abbott@intel.com>2015-07-28 16:53:53 -0700
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>2016-05-10 11:25:07 +0200
commitcc64c9e441acce45b1a7531d1762d152ad9ce22f (patch)
tree3031afaf8e3facaf7e4754c101acf31b5f9c4e3a /src/mesa/drivers/dri/i965/brw_fs.h
parentfe949949a91ff10e28024ce1a80797832adb408d (diff)
downloadexternal_mesa3d-cc64c9e441acce45b1a7531d1762d152ad9ce22f.zip
external_mesa3d-cc64c9e441acce45b1a7531d1762d152ad9ce22f.tar.gz
external_mesa3d-cc64c9e441acce45b1a7531d1762d152ad9ce22f.tar.bz2
i965/fs: use byte_offset() in offset() for uniforms
This makes things more consistent, and also fixes the offset calculation for double uniforms. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index 27d9335..5ed123a 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -54,11 +54,9 @@ offset(fs_reg reg, const brw::fs_builder& bld, unsigned delta)
case MRF:
case VGRF:
case ATTR:
+ case UNIFORM:
return byte_offset(reg,
delta * reg.component_size(bld.dispatch_width()));
- case UNIFORM:
- reg.reg_offset += delta;
- break;
case IMM:
assert(delta == 0);
}