diff options
author | Connor Abbott <[email protected]> | 2015-07-28 16:53:02 -0700 |
---|---|---|
committer | Samuel Iglesias Gonsálvez <[email protected]> | 2016-05-10 11:25:06 +0200 |
commit | fe949949a91ff10e28024ce1a80797832adb408d (patch) | |
tree | e1955ad361b2830241e639a1ae13e2b8525862bc /src/mesa | |
parent | 1f51aada3fbf73ffe601f743b5244df63e17f9d5 (diff) |
i965/fs: handle uniforms in byte_offset()
v2: Do it only for uniforms (Iago)
Signed-off-by: Iago Toral Quiroga <[email protected]>
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_ir_fs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_ir_fs.h b/src/mesa/drivers/dri/i965/brw_ir_fs.h index 1649da3e2bf..86acdb236a4 100644 --- a/src/mesa/drivers/dri/i965/brw_ir_fs.h +++ b/src/mesa/drivers/dri/i965/brw_ir_fs.h @@ -90,10 +90,14 @@ byte_offset(fs_reg reg, unsigned delta) case MRF: reg.nr += delta / 32; break; + case UNIFORM: + reg.reg_offset += delta / 4; + reg.subreg_offset += delta % 4; + return reg; case ARF: case FIXED_GRF: case IMM: - case UNIFORM: + default: assert(delta == 0); } reg.subreg_offset += delta % 32; |