nv50: small fix for handling "dangerous" swizzles
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 31 Dec 2009 21:24:13 +0000 (22:24 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 31 Dec 2009 21:29:39 +0000 (22:29 +0100)
src/gallium/drivers/nv50/nv50_program.c

index 673334773522b4336fa9e514a2e38eab73e5da7f..2d0b1818ef60a4ee156f9921a60729f00b2058c0 100644 (file)
@@ -2864,7 +2864,7 @@ nv50_tgsi_insn(struct nv50_pc *pc, const union tgsi_full_token *tok)
        }
        pc->r_brdc = NULL;
 
-       if (!deqs)
+       if (!deqs || (!rdep[0] && !rdep[1] && !rdep[2] && !rdep[3]))
                return nv50_program_tx_insn(pc, &insn);
 
        deqs = nv50_revdep_reorder(m, rdep);