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:
ce3d9fc
)
Check for read accessors before taking the bilinear fast path
author
Søren Sandmann Pedersen
<ssp@redhat.com>
Mon, 12 Jul 2010 19:13:49 +0000
(15:13 -0400)
committer
Søren Sandmann Pedersen
<ssp@redhat.com>
Tue, 13 Jul 2010 19:46:21 +0000
(15:46 -0400)
The bilinear fast path accesses pixels directly, so if the image has a
read accessor, then it can't be used.
pixman/pixman-bits-image.c
patch
|
blob
|
history
diff --git
a/pixman/pixman-bits-image.c
b/pixman/pixman-bits-image.c
index ff59a8f7a48edcddb6636c5c4195f3534495057c..95710b4cf5a81420e28a3957689cc63432349dbb 100644
(file)
--- a/
pixman/pixman-bits-image.c
+++ b/
pixman/pixman-bits-image.c
@@
-909,6
+909,7
@@
bits_image_property_changed (pixman_image_t *image)
bits->common.transform->matrix[2][2] == pixman_fixed_1 &&
bits->common.transform->matrix[0][0] > 0 &&
bits->common.transform->matrix[1][0] == 0 &&
+ !bits->read_func &&
(bits->common.filter == PIXMAN_FILTER_BILINEAR ||
bits->common.filter == PIXMAN_FILTER_GOOD ||
bits->common.filter == PIXMAN_FILTER_BEST) &&