sna: Add a DBG to track calls to SetScreenPixmap

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-09-05 14:42:18 +01:00
parent 94bc69d5b9
commit e6bb553b74
2 changed files with 8 additions and 0 deletions

View File

@ -15265,6 +15265,12 @@ sna_set_screen_pixmap(PixmapPtr pixmap)
PixmapPtr old_front = screen->devPrivate;
WindowPtr root;
DBG(("%s: changing from pixmap=%ld to pixmap=%ld, (sna->front=%ld)\n",
__FUNCTION__,
old_front ? (long)old_front->drawable.serialNumber : 0,
pixmap ? (long)pixmap->drawable.serialNumber : 0,
to_sna_from_pixmap(pixmap)->front ? (long)to_sna_from_pixmap(pixmap)->front->drawable.serialNumber : 0));
assert(to_sna_from_pixmap(pixmap) == to_sna_from_screen(screen));
assert(to_sna_from_pixmap(pixmap)->front == old_front);

View File

@ -287,6 +287,8 @@ sna_dri_create_buffer(DrawablePtr draw,
if (bo == NULL)
return NULL;
assert(sna_pixmap(pixmap) != NULL);
bo = ref(bo);
bpp = pixmap->drawable.bitsPerPixel;
if (pixmap == sna->front)