freedreno/ir3: fix neverball assert in case of unused VS inputs
[mesa.git] / src / freedreno / ir3 / ir3.h
index afff38b9b60de675ea61f755cef5a1e3011e10ea..aa89e765bef158eb91f1d261c997a6fa1785aa40 100644 (file)
@@ -614,6 +614,10 @@ static inline uint32_t reg_comp(struct ir3_register *reg)
        return reg->num & 0x3;
 }
 
+#define INVALID_REG      regid(63, 0)
+#define VALIDREG(r)      ((r) != INVALID_REG)
+#define CONDREG(r, val)  COND(VALIDREG(r), (val))
+
 static inline bool is_flow(struct ir3_instruction *instr)
 {
        return (opc_cat(instr->opc) == 0);