projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5f0ae0
)
softpipe: Fix rgb_dst_factor == PIPE_BLENDFACTOR_SRC_ALPHA_SATURATE.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 6 Nov 2012 15:59:41 +0000
(15:59 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 9 Nov 2012 13:43:19 +0000
(13:43 +0000)
We must multiply the factor against the destination, not the source.
NOTE: Candidate for the stable branches.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/softpipe/sp_quad_blend.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_quad_blend.c
b/src/gallium/drivers/softpipe/sp_quad_blend.c
index aba6730da050b3bcdd3771fcccfa96bbafe7de83..b85431d5be9ff8250e0fd3c8b4f78e2738ba4355 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_quad_blend.c
+++ b/
src/gallium/drivers/softpipe/sp_quad_blend.c
@@
-568,9
+568,9
@@
blend_quad(struct quad_stage *qs,
float diff[4], temp[4];
VEC4_SUB(diff, one, blend_dest[3]);
VEC4_MIN(temp, alpha, diff);
- VEC4_MUL(blend_dest[0],
quadColor
[0], temp); /* R */
- VEC4_MUL(blend_dest[1],
quadColor
[1], temp); /* G */
- VEC4_MUL(blend_dest[2],
quadColor
[2], temp); /* B */
+ VEC4_MUL(blend_dest[0],
blend_dest
[0], temp); /* R */
+ VEC4_MUL(blend_dest[1],
blend_dest
[1], temp); /* G */
+ VEC4_MUL(blend_dest[2],
blend_dest
[2], temp); /* B */
}
break;
case PIPE_BLENDFACTOR_CONST_COLOR: