diff options
-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; |