i965/brw_reg: Add a brw_VxH_indirect helper
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
committed by
Kenneth Graunke
parent
68993f77cd
commit
80890eb0d3
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user