broadcom/vc5: Use the new LDVPM/STVPM opcodes on V3D 4.1.
Now, instead of a magic write register for VPM stores we have an instruction to do them (which means no packing of other ALU ops into it), with the ability to reorder the VPM stores due to the offset being baked into the instruction. VPM loads also gain the ability to be reordered by packing the row into the A argument. They also no longer write to the r3 accumulator, and instead must be stored to a physical register.
This commit is contained in:
@@ -791,6 +791,7 @@ VIR_A_ALU2(OR)
|
||||
VIR_A_ALU2(XOR)
|
||||
VIR_A_ALU2(VADD)
|
||||
VIR_A_ALU2(VSUB)
|
||||
VIR_A_ALU2(STVPMV)
|
||||
VIR_A_ALU1(NOT)
|
||||
VIR_A_ALU1(NEG)
|
||||
VIR_A_ALU1(FLAPUSH)
|
||||
@@ -800,6 +801,8 @@ VIR_A_ALU1(SETMSF)
|
||||
VIR_A_ALU1(SETREVF)
|
||||
VIR_A_ALU1(TIDX)
|
||||
VIR_A_ALU1(EIDX)
|
||||
VIR_A_ALU1(LDVPMV_IN)
|
||||
VIR_A_ALU1(LDVPMV_OUT)
|
||||
|
||||
VIR_A_ALU0(FXCD)
|
||||
VIR_A_ALU0(XCD)
|
||||
@@ -854,12 +857,6 @@ vir_SEL(struct v3d_compile *c, enum v3d_qpu_cond cond,
|
||||
return t;
|
||||
}
|
||||
|
||||
static inline void
|
||||
vir_VPM_WRITE(struct v3d_compile *c, struct qreg val)
|
||||
{
|
||||
vir_MOV_dest(c, vir_reg(QFILE_MAGIC, V3D_QPU_WADDR_VPM), val);
|
||||
}
|
||||
|
||||
static inline struct qinst *
|
||||
vir_NOP(struct v3d_compile *c)
|
||||
{
|
||||
|
Reference in New Issue
Block a user