draw: Use register names more consistently.
authorMichal Krol <michal@ubuntu-vbox.(none)>
Tue, 3 Jun 2008 09:22:00 +0000 (11:22 +0200)
committerMichal Krol <michal@ubuntu-vbox.(none)>
Tue, 3 Jun 2008 09:22:00 +0000 (11:22 +0200)
src/gallium/auxiliary/draw/draw_vs_aos.c

index 891f8c211aa6c7094b90abccd61a28ba64fea1e1..3cf4a4d125aa28867fa89e767c6e417f4393ad9c 100644 (file)
@@ -536,7 +536,6 @@ static struct x86_reg fetch_src( struct aos_compilation *cp,
          emit_pshufd(cp, dst, arg0, swz);
       else
          sse_movaps(cp->func, dst, arg0);
-      arg0 = dst;
 
       if (negs && negs != 0xf) {
          struct x86_reg imm_swz = aos_get_internal_xmm(cp, IMM_SWZ);
@@ -568,12 +567,14 @@ static struct x86_reg fetch_src( struct aos_compilation *cp,
          struct x86_reg neg = aos_get_internal(cp, IMM_NEGS);
          struct x86_reg tmp = aos_get_xmm_reg(cp);
 
-         sse_movaps(cp->func, tmp, arg0);
+         sse_movaps(cp->func, tmp, dst);
          sse_mulps(cp->func, tmp, neg);
          sse_maxps(cp->func, dst, tmp);
 
          aos_release_xmm_reg(cp, tmp.idx);
       }
+
+      return dst;
    }
       
    return arg0;