sna: Allow scanouts to force late attachment

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-01-06 13:36:13 +00:00
parent 61ab528b16
commit 25581f63cf
1 changed files with 1 additions and 1 deletions

View File

@ -3215,7 +3215,7 @@ __sna_pixmap_for_gpu(struct sna *sna, PixmapPtr pixmap, unsigned flags)
priv = sna_pixmap(pixmap);
if (priv == NULL) {
DBG(("%s: not attached\n", __FUNCTION__));
if ((flags & __MOVE_DRI) == 0)
if ((flags & (__MOVE_DRI | __MOVE_SCANOUT)) == 0)
return NULL;
if (pixmap->usage_hint == -1) {