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:
parent
707901bf98
commit
23ee926bcd
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue