summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-01-07 16:56:02 -0800
committerXiang, Haihao <haihao.xiang@intel.com>2009-01-08 16:51:51 +0800
commiteef0dcc298f65158dc750a09f80317ded1101dc7 (patch)
tree2549e28f02eceebc4476bd7694e9356755d44352
parent5b3bb7aaf7646ab5fb1ab632529ea0ae4511079d (diff)
i965: Fix GLSL FS DPH to return the right value instead of src0.w * src1.w.
(cherry picked from commit 83a74521cfd2e81dd98ee1d84aff42a660613740)
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_glsl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c
index d43e326f7d..942ebe1ed4 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);
}