i965: Subtract instead of adding when computing y delta in new FS backend.

Fixes 7 piglit cases.
This commit is contained in:
Eric Anholt 2010-09-28 10:18:31 -07:00
parent 5f7bd68149
commit 9e96c737f8
1 changed files with 1 additions and 1 deletions

View File

@ -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