sna: Treat ShmPixmap as ordinary

In theory the code handles the automatic promotion and demotion of the
GPU buffers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-11 10:46:40 +01:00
parent 16c751a06c
commit f20f8556bf
1 changed files with 2 additions and 2 deletions

View File

@ -776,7 +776,7 @@ fallback:
pixmap = sna->freed_pixmap;
sna->freed_pixmap = pixmap->devPrivate.ptr;
pixmap->usage_hint = -1;
pixmap->usage_hint = 0;
pixmap->refcnt = 1;
pixmap->drawable.width = width;
@ -793,7 +793,7 @@ fallback:
priv = _sna_pixmap_reset(pixmap);
} else {
pixmap = create_pixmap(sna, screen, 0, 0, depth, -1);
pixmap = create_pixmap(sna, screen, 0, 0, depth, 0);
if (pixmap == NullPixmap)
return NullPixmap;