projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09fba30
)
st/vega: Fix VG_BLEND_MULTIPLY.
author
Chia-I Wu
<olv@lunarg.com>
Sat, 4 Dec 2010 13:02:50 +0000
(21:02 +0800)
committer
Chia-I Wu
<olv@lunarg.com>
Sat, 4 Dec 2010 15:41:30 +0000
(23:41 +0800)
TEMP[1].w will be needed for OUT.w just below. Use TEMP[0] to store the
intermediate value.
src/gallium/state_trackers/vega/asm_fill.h
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/vega/asm_fill.h
b/src/gallium/state_trackers/vega/asm_fill.h
index
566f7c9
..
5ff7697
100644
(file)
--- a/
src/gallium/state_trackers/vega/asm_fill.h
+++ b/
src/gallium/state_trackers/vega/asm_fill.h
@@
-367,7
+367,7
@@
blend_generic(struct ureg_program *ureg,
ureg_scalar(dst, TGSI_SWIZZLE_W), ureg_negate(src), src);
ureg_MAD(ureg, temp[1],
src_channel_alpha, ureg_negate(dst), dst);
- ureg_MAD(ureg, temp[
1], src, dst, ureg_src(temp[1
]));
+ ureg_MAD(ureg, temp[
0], src, dst, ureg_src(temp[0
]));
ureg_ADD(ureg, out, ureg_src(temp[0]), ureg_src(temp[1]));
/* alpha is src over */
ureg_ADD(ureg, ureg_writemask(out, TGSI_WRITEMASK_W),