i965/brw_reg: Add a brw_VxH_indirect helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 20 Aug 2015 05:15:33 +0000 (22:15 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 11 Nov 2015 18:52:30 +0000 (10:52 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_reg.h

index 083c46a372685658757d197dc79d874fb1c69e2f..c3f77c0210a6a4bb1b9d17c1078f5365359c6b09 100644 (file)
@@ -994,6 +994,17 @@ brw_vec1_indirect(unsigned subnr, int offset)
    return reg;
 }
 
+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)
 {