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:
parent
16c751a06c
commit
f20f8556bf
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue