fix issue with output as src register.
authorZou Nan hai <nanhai.zou@intel.com>
Wed, 4 Jul 2007 02:51:57 +0000 (10:51 +0800)
committerZou Nan hai <nanhai.zou@intel.com>
Wed, 4 Jul 2007 02:51:57 +0000 (10:51 +0800)
src/mesa/drivers/dri/i965/brw_vs_emit.c

index 7dc6f9bf93ffb116c7a3f5ea6c82ad38ac8a37c4..18ede5f6cdc0d7de2a9bab827389a67dfbe6cee5 100644 (file)
@@ -1165,7 +1165,7 @@ void brw_vs_emit(struct brw_vs_compile *c )
       if (inst->DstReg.File == PROGRAM_OUTPUT
              &&inst->DstReg.Index != VERT_RESULT_HPOS
              &&c->output_regs[inst->DstReg.Index].used_in_src)
-         brw_MOV(p, dst, c->output_regs[inst->DstReg.Index].reg);
+         brw_MOV(p, get_dst(c, inst->DstReg), dst);
 
       release_tmps(c);
    }