From: Eric Anholt Date: Tue, 28 Sep 2010 17:18:31 +0000 (-0700) Subject: i965: Subtract instead of adding when computing y delta in new FS backend. X-Git-Tag: 062012170305~9444^2~567 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e96c737f8cb6faebf7c7339cfcf14f80ed8e73c;p=profile%2Fivi%2Fmesa.git i965: Subtract instead of adding when computing y delta in new FS backend. Fixes 7 piglit cases. --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 0595488..723ebca 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -1335,7 +1335,7 @@ fs_visitor::emit_interpolation() emit(fs_inst(BRW_OPCODE_ADD, this->delta_y, this->pixel_y, - fs_reg(brw_vec1_grf(1, 1)))); + fs_reg(negate(brw_vec1_grf(1, 1))))); this->current_annotation = "compute pos.w and 1/pos.w"; /* Compute wpos. Unlike many other varying inputs, we usually need it