[965] Improve pinterp performance by delaying reads of just-written regs.
authorMichal Wajdeczko <Michal.Wajdeczko@intel.com>
Fri, 21 Mar 2008 20:48:12 +0000 (13:48 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 21 Mar 2008 21:19:30 +0000 (14:19 -0700)
src/mesa/drivers/dri/i965/brw_wm_emit.c

index 0000edda8434b0be0c91d1b27deb9d2f74d4387f..82ebd5c2576c42d927fe6e7ac3cee390fd34ce98 100644 (file)
@@ -223,6 +223,10 @@ static void emit_pinterp( struct brw_compile *p,
       if (mask & (1<<i)) {
         brw_LINE(p, brw_null_reg(), interp[i], deltas[0]);
         brw_MAC(p, dst[i], suboffset(interp[i],1), deltas[1]);
+      }
+   }
+   for(i = 0; i < 4; i++ ) {
+      if (mask & (1<<i)) {
         brw_MUL(p, dst[i], dst[i], w[3]);
       }
    }