uxa: Skip a pixmap lookup if there is no driver finish access function

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2010-10-06 10:20:49 +01:00
parent 707901bf98
commit 23ee926bcd
1 changed files with 2 additions and 1 deletions

View File

@ -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;