Fix typo in logic for unalias2()
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 2 Aug 2007 10:37:57 +0000 (11:37 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 2 Aug 2007 10:39:19 +0000 (11:39 +0100)
src/mesa/drivers/dri/i965/brw_vs_emit.c

index 6eb11b19ad2f4f9c4069b9ee00045b06fbdd64f0..d00f0c71a8f86a9c3cfe62e3e7f8cadc244e17d6 100644 (file)
@@ -201,7 +201,7 @@ static void unalias2( struct brw_vs_compile *c,
                                    struct brw_reg,
                                    struct brw_reg ))
 {
-   if ((dst.file == arg0.file && dst.nr == arg0.nr) &&
+   if ((dst.file == arg0.file && dst.nr == arg0.nr) ||
        (dst.file == arg1.file && dst.nr == arg1.nr)) {
       struct brw_compile *p = &c->func;
       struct brw_reg tmp = brw_writemask(get_tmp(c), dst.dw1.bits.writemask);