From: Eric Anholt Date: Tue, 28 Sep 2010 17:07:56 +0000 (-0700) Subject: i965: Fix all non-snb regression in the snb attribute interpolation commit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1dba030564e66ca52f4ed44172681e7d2e90ad2;p=mesa.git i965: Fix all non-snb regression in the snb attribute interpolation commit. This apparently had never been tested elsewhere before being merged to master. --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_fp.c b/src/mesa/drivers/dri/i965/brw_wm_fp.c index a88b7bdea85..d4d75d63d8c 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_fp.c +++ b/src/mesa/drivers/dri/i965/brw_wm_fp.c @@ -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);