diff options
author | Eric Anholt <[email protected]> | 2009-01-07 16:56:02 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-01-07 20:35:25 -0800 |
commit | 83a74521cfd2e81dd98ee1d84aff42a660613740 (patch) | |
tree | 97e2a44cf17a1a528f967c19653bdf2aba4d32ef /src | |
parent | 6d2cf395f401b53da1c2fc4485a297fd975637c6 (diff) |
i965: Fix GLSL FS DPH to return the right value instead of src0.w * src1.w.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_glsl.c | 2 |
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 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); } |