diff options
author | Connor Abbott <[email protected]> | 2015-07-28 16:53:53 -0700 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2016-05-10 11:25:07 +0200 |
commit | cc64c9e441acce45b1a7531d1762d152ad9ce22f (patch) | |
tree | 3031afaf8e3facaf7e4754c101acf31b5f9c4e3a /src/mesa | |
parent | fe949949a91ff10e28024ce1a80797832adb408d (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.h | 4 |
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 27d93356427..5ed123aa226 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); } |