freedreno/ir3: handle flat bypass for a4xx
[mesa.git] / src / gallium / drivers / freedreno / ir3 / ir3.h
index f90392b72972f58bceada2232c2b5701c3a4563e..18d59fa7d55c56601d9b2a83f1718a22ce573b02 100644 (file)
@@ -427,6 +427,12 @@ static inline bool is_mem(struct ir3_instruction *instr)
 
 static inline bool is_input(struct ir3_instruction *instr)
 {
+       /* in some cases, ldlv is used to fetch varying without
+        * interpolation.. fortunately inloc is the first src
+        * register in either case
+        */
+       if (is_mem(instr) && (instr->opc == OPC_LDLV))
+               return true;
        return (instr->category == 2) && (instr->opc == OPC_BARY_F);
 }