OSDN Git Service

i965: Subtract instead of adding when computing y delta in new FS backend.
authorEric Anholt <eric@anholt.net>
Tue, 28 Sep 2010 17:18:31 +0000 (10:18 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 Sep 2010 17:19:54 +0000 (10:19 -0700)
Fixes 7 piglit cases.

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

index 0595488..723ebca 100644 (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