projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
739d38c
)
i965: Fix GLSL FS DPH to return the right value instead of src0.w * src1.w.
author
Eric Anholt
<eric@anholt.net>
Thu, 8 Jan 2009 00:56:02 +0000
(16:56 -0800)
committer
Alan Hourihane
<alanh@vmware.com>
Fri, 9 Jan 2009 11:16:40 +0000
(11:16 +0000)
src/mesa/drivers/dri/i965/brw_wm_glsl.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_wm_glsl.c
b/src/mesa/drivers/dri/i965/brw_wm_glsl.c
index d43e326f7d198352b9cf73deb3fbbf815cec74be..942ebe1ed4ef607f3abf6c403b2788b4d3f1d7f6 100644
(file)
--- 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);
}