diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index d28384d8216..4c1ac9cedd2 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -44,23 +44,9 @@ namespace brw { struct brw_gs_compile; static inline fs_reg -offset(fs_reg reg, const brw::fs_builder& bld, unsigned delta) +offset(const fs_reg ®, const brw::fs_builder &bld, unsigned delta) { - switch (reg.file) { - case BAD_FILE: - break; - case ARF: - case FIXED_GRF: - case MRF: - case VGRF: - case ATTR: - case UNIFORM: - return byte_offset(reg, - delta * reg.component_size(bld.dispatch_width())); - case IMM: - assert(delta == 0); - } - return reg; + return offset(reg, bld.dispatch_width(), delta); } /** |