summaryrefslogtreecommitdiff
path: root/uxa/uxa.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-10-06 10:20:49 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-10-06 12:17:14 +0100
commit23ee926bcd8ddd7a2785786efdf119e4fae75bfd (patch)
tree38acd6f1882e5ecc311c17dde818b4f584caf2bc /uxa/uxa.c
parent707901bf98073fb56179a0b61c806f85ef8f413c (diff)
uxa: Skip a pixmap lookup if there is no driver finish access function
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'uxa/uxa.c')
-rw-r--r--uxa/uxa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uxa/uxa.c b/uxa/uxa.c
index 3c81a851..856a0ce5 100644
--- a/uxa/uxa.c
+++ b/uxa/uxa.c
@@ -164,11 +164,12 @@ void uxa_finish_access(DrawablePtr pDrawable)
{
ScreenPtr pScreen = pDrawable->pScreen;
uxa_screen_t *uxa_screen = uxa_get_screen(pScreen);
- PixmapPtr pPixmap = uxa_get_drawable_pixmap(pDrawable);
+ PixmapPtr pPixmap;
if (uxa_screen->info->finish_access == NULL)
return;
+ pPixmap = uxa_get_drawable_pixmap(pDrawable);
if (!uxa_pixmap_is_offscreen(pPixmap))
return;