From 23ee926bcd8ddd7a2785786efdf119e4fae75bfd Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 6 Oct 2010 10:20:49 +0100 Subject: [PATCH] uxa: Skip a pixmap lookup if there is no driver finish access function Signed-off-by: Chris Wilson --- uxa/uxa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;