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:
parent
f6cc73ba66
commit
2cbc97d28a
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue