v3d: Add missing macro for stvpmd instruction
[mesa.git] / src / broadcom / compiler / vir_opt_copy_propagate.c
index dc35701e3db18ece677ca47671820d500494d57c..c5bb61121733a813fc334e13e84ebf9838417574 100644 (file)
@@ -49,10 +49,8 @@ is_copy_mov(struct qinst *inst)
         if (inst->dst.file != QFILE_TEMP)
                 return false;
 
-        if (inst->src[0].file != QFILE_TEMP &&
-            inst->src[0].file != QFILE_UNIF) {
+        if (inst->src[0].file != QFILE_TEMP)
                 return false;
-        }
 
         if (inst->qpu.alu.add.output_pack != V3D_QPU_PACK_NONE ||
             inst->qpu.alu.mul.output_pack != V3D_QPU_PACK_NONE) {
@@ -160,7 +158,7 @@ try_copy_prop(struct v3d_compile *c, struct qinst *inst, struct qinst **movs)
 
                         /* No composing the unpacks. */
                         if (vir_has_unpack(inst, i))
-                            continue;
+                                continue;
 
                         /* these ops can't represent abs. */
                         if (mov->qpu.alu.mul.a_unpack == V3D_QPU_UNPACK_ABS) {