summaryrefslogtreecommitdiff
path: root/uxa/uxa-render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-04 12:36:40 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-04 13:11:14 +0000
commita26c5d44ccaa7e9ff931948032b073f0a550343a (patch)
treed839e7e7e8c283ca548221c18a52d495bd2b9fe5 /uxa/uxa-render.c
parent34758895cdd93bd7671a78464e79b3891bca113d (diff)
uxa: Ensure that alphaMaps are mapped into the CPU for fallbacks
Reported-by: Hans-Peter Budek <peter.budek@gmx.de> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'uxa/uxa-render.c')
-rw-r--r--uxa/uxa-render.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index b26be802..34257c6e 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -568,10 +568,10 @@ uxa_picture_from_pixman_image(ScreenPtr screen,
}
ValidatePicture(src);
- if (uxa_prepare_access(picture->pDrawable, UXA_ACCESS_RW)) {
+ if (uxa_picture_prepare_access(picture, UXA_ACCESS_RW)) {
fbComposite(PictOpSrc, src, NULL, picture,
0, 0, 0, 0, 0, 0, width, height);
- uxa_finish_access(picture->pDrawable);
+ uxa_picture_finish_access(picture);
}
FreePicture(src, 0);
@@ -699,10 +699,10 @@ uxa_acquire_pattern(ScreenPtr pScreen,
if (!pDst)
return 0;
- if (uxa_prepare_access(pDst->pDrawable, UXA_ACCESS_RW)) {
+ if (uxa_picture_prepare_access(pDst, UXA_ACCESS_RW)) {
fbComposite(PictOpSrc, pSrc, NULL, pDst,
x, y, 0, 0, 0, 0, width, height);
- uxa_finish_access(pDst->pDrawable);
+ uxa_picture_finish_access(pDst);
return pDst;
} else {
FreePicture(pDst, 0);
@@ -756,14 +756,14 @@ uxa_render_picture(ScreenPtr screen,
if (!picture)
return 0;
- if (uxa_prepare_access(picture->pDrawable, UXA_ACCESS_RW)) {
- if (uxa_prepare_access(src->pDrawable, UXA_ACCESS_RO)) {
+ if (uxa_picture_prepare_access(picture, UXA_ACCESS_RW)) {
+ if (uxa_picture_prepare_access(src, UXA_ACCESS_RO)) {
ret = 1;
fbComposite(PictOpSrc, src, NULL, picture,
x, y, 0, 0, 0, 0, width, height);
- uxa_finish_access(src->pDrawable);
+ uxa_picture_finish_access(src);
}
- uxa_finish_access(picture->pDrawable);
+ uxa_picture_finish_access(picture);
}
if (!ret) {