sna: Force creation of ordinary pixmaps when wedged.

If the pixmap was intended for scanout, then the GPU bo will be created
upon attachment to the fb.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-01-04 12:32:06 +00:00
parent f6cc73ba66
commit 2cbc97d28a
1 changed files with 5 additions and 0 deletions

View File

@ -563,6 +563,11 @@ static PixmapPtr sna_create_pixmap(ScreenPtr screen,
DBG(("%s(%d, %d, %d, usage=%x)\n", __FUNCTION__,
width, height, depth, usage));
if (wedged(sna))
return create_pixmap(sna, screen,
width, height, depth,
usage);
if (usage == CREATE_PIXMAP_USAGE_SCRATCH)
#if USE_BO_FOR_SCRATCH_PIXMAP
return sna_pixmap_create_scratch(screen,