projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f62a4f
)
Really fix vmx_combine_over_reverse_ca()
author
Søren Sandmann Pedersen
<sandmann@redhat.com>
Fri, 7 Aug 2009 15:46:09 +0000
(11:46 -0400)
committer
Søren Sandmann Pedersen
<sandmann@redhat.com>
Sat, 8 Aug 2009 22:50:19 +0000
(18:50 -0400)
The inverse destination alpha is just one component, not four.
pixman/pixman-vmx.c
patch
|
blob
|
history
diff --git
a/pixman/pixman-vmx.c
b/pixman/pixman-vmx.c
index
587ade5
..
1651ec3
100644
(file)
--- a/
pixman/pixman-vmx.c
+++ b/
pixman/pixman-vmx.c
@@
-1238,8
+1238,10
@@
vmx_combine_over_reverse_ca (pixman_implementation_t *imp,
uint32_t s = src[i];
uint32_t d = dest[i];
uint32_t ida = ALPHA_8 (~d);
+
UN8x4_MUL_UN8x4 (s, a);
- UN8x4_MUL_UN8x4_ADD_UN8x4 (s, ida, d);
+ UN8x4_MUL_UN8_ADD_UN8x4 (s, ida, d);
+
dest[i] = s;
}
}
@@
-1458,6
+1460,7
@@
vmx_combine_atop_ca (pixman_implementation_t *imp,
UN8x4_MUL_UN8x4 (s, a);
UN8x4_MUL_UN8 (a, sa);
UN8x4_MUL_UN8x4_ADD_UN8x4_MUL_UN8 (d, ~a, s, da);
+
dest[i] = d;
}
}