diff options
author | Francisco Jerez <[email protected]> | 2016-09-07 13:41:08 -0700 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2016-09-14 14:50:54 -0700 |
commit | 937373eb25c53b0803e526b7b273afc2b3330752 (patch) | |
tree | 714a3dc1bccebe32ae9fd8d88bac1d7c7df60053 /src/mesa | |
parent | 1a4b7fdd88919b9ea51a4e9ce3808d85eea9fe5e (diff) |
i965/fs: Handle fixed HW GRF subnr in reg_offset().
This will be useful later on when we start using reg_offset() on fixed
hardware registers.
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_ir_fs.h | 3 |
1 files changed, 2 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 2e5c8e54d22..4ac9baabc1e 100644 --- a/src/mesa/drivers/dri/i965/brw_ir_fs.h +++ b/src/mesa/drivers/dri/i965/brw_ir_fs.h @@ -187,7 +187,8 @@ static inline unsigned reg_offset(const fs_reg &r) { return (r.file == VGRF || r.file == IMM ? 0 : r.nr) * - (r.file == UNIFORM ? 4 : REG_SIZE) + r.offset; + (r.file == UNIFORM ? 4 : REG_SIZE) + r.offset + + (r.file == ARF || r.file == FIXED_GRF ? r.subnr : 0); } /** |