mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
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:
parent
fe949949a9
commit
cc64c9e441
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue