summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-09-28 10:18:31 -0700
committerEric Anholt <[email protected]>2010-09-28 10:19:54 -0700
commit9e96c737f8cb6faebf7c7339cfcf14f80ed8e73c (patch)
treed759a97d7ff4d61f2f0087c43df81f6692a6fbdf
parent5f7bd68149e59b6940e891928faa532bce0271f6 (diff)
i965: Subtract instead of adding when computing y delta in new FS backend.
Fixes 7 piglit cases.
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 0595488c9cc..723ebca61bb 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