Mesa (master): nv50: small fix for handling "dangerous" swizzles

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Thu Dec 31 21:30:42 UTC 2009


Module: Mesa
Branch: master
Commit: 45a01bc5bd95a6cc85a9db7d8e2c07812346373d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=45a01bc5bd95a6cc85a9db7d8e2c07812346373d

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Thu Dec 31 22:24:13 2009 +0100

nv50: small fix for handling "dangerous" swizzles

---

 src/gallium/drivers/nv50/nv50_program.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index 6733347..2d0b181 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -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);




More information about the mesa-commit mailing list