Revert "i965/fs: Correctly set up gl_FragCoord.w on Sandybridge."
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 1 Mar 2011 09:07:19 +0000 (01:07 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 1 Mar 2011 09:09:15 +0000 (01:09 -0800)
This reverts commit 4a3b28113c3d23ba21bb8b8f5ebab7c567083a6d, as it
caused a regression on Ironlake (bug #34646).

src/mesa/drivers/dri/i965/brw_fs.cpp

index 9bdcda780ef101e5e997f0464454bc4e4caa3302..ce7959b19de0d4b5eb9770f3c167a74ea7f0a9eb 100644 (file)
@@ -495,7 +495,7 @@ fs_visitor::emit_fragcoord_interpolation(ir_variable *ir)
    wpos.reg_offset++;
 
    /* gl_FragCoord.w: Already set up in emit_interpolation */
-   emit(fs_inst(BRW_OPCODE_MOV, wpos, this->pixel_w));
+   emit(fs_inst(BRW_OPCODE_MOV, wpos, this->wpos_w));
 
    return reg;
 }