From: Eric Anholt Date: Thu, 8 Jan 2009 00:56:02 +0000 (-0800) Subject: i965: Fix GLSL FS DPH to return the right value instead of src0.w * src1.w. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28c503d4bb7b46c593d346f142b05f35afe0d0d1;p=mesa.git i965: Fix GLSL FS DPH to return the right value instead of src0.w * src1.w. --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c index d43e326f7d1..942ebe1ed4e 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c +++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c @@ -623,7 +623,7 @@ static void emit_dph(struct brw_wm_compile *c, brw_MAC(p, brw_null_reg(), src0[1], src1[1]); brw_MAC(p, dst, src0[2], src1[2]); brw_set_saturate(p, (inst->SaturateMode != SATURATE_OFF) ? 1 : 0); - brw_ADD(p, dst, src0[3], src1[3]); + brw_ADD(p, dst, dst, src1[3]); brw_set_saturate(p, 0); }