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>
This commit is contained in:
Connor Abbott 2015-07-28 16:53:53 -07:00 committed by Samuel Iglesias Gonsálvez
parent fe949949a9
commit cc64c9e441

View file

@ -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);
}