diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-08-19 22:15:33 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2015-11-11 10:52:30 -0800 |
commit | 80890eb0d322483fb13558afddc4feae5210f996 (patch) | |
tree | d03d84fb24e542944ad07b9a24687fde26b43dfd | |
parent | 68993f77cd9db5b9cb77fe3e7d1c451cf9bd6538 (diff) | |
download | external_mesa3d-80890eb0d322483fb13558afddc4feae5210f996.zip external_mesa3d-80890eb0d322483fb13558afddc4feae5210f996.tar.gz external_mesa3d-80890eb0d322483fb13558afddc4feae5210f996.tar.bz2 |
i965/brw_reg: Add a brw_VxH_indirect helper
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_reg.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_reg.h b/src/mesa/drivers/dri/i965/brw_reg.h index 083c46a..c3f77c0 100644 --- a/src/mesa/drivers/dri/i965/brw_reg.h +++ b/src/mesa/drivers/dri/i965/brw_reg.h @@ -995,6 +995,17 @@ brw_vec1_indirect(unsigned subnr, int offset) } static inline struct brw_reg +brw_VxH_indirect(unsigned subnr, int offset) +{ + struct brw_reg reg = brw_vec1_grf(0, 0); + reg.vstride = BRW_VERTICAL_STRIDE_ONE_DIMENSIONAL; + reg.subnr = subnr; + reg.address_mode = BRW_ADDRESS_REGISTER_INDIRECT_REGISTER; + reg.dw1.bits.indirect_offset = offset; + return reg; +} + +static inline struct brw_reg deref_4f(struct brw_indirect ptr, int offset) { return brw_vec4_indirect(ptr.addr_subnr, ptr.addr_offset + offset); |