i965: Fix all non-snb regression in the snb attribute interpolation commit.
authorEric Anholt <eric@anholt.net>
Tue, 28 Sep 2010 17:07:56 +0000 (10:07 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 Sep 2010 17:10:42 +0000 (10:10 -0700)
This apparently had never been tested elsewhere before being merged to
master.

src/mesa/drivers/dri/i965/brw_wm_fp.c

index a88b7bdea85d9c7c2d937b58e58cfc3e47c2a3d3..d4d75d63d8ccc36331f587194e7bae8fed2c07df 100644 (file)
@@ -342,7 +342,7 @@ static struct prog_src_register get_pixel_w( struct brw_wm_compile *c )
    if (c->func.brw->intel.gen >= 6)
       return src_undef();
 
-   if (!src_is_undef(c->pixel_w)) {
+   if (src_is_undef(c->pixel_w)) {
       struct prog_dst_register pixel_w = get_temp(c);
       struct prog_src_register deltas = get_delta_xy(c);
       struct prog_src_register interp_wpos = src_reg(PROGRAM_PAYLOAD, FRAG_ATTRIB_WPOS);