summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-04 12:32:06 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-04 12:46:12 +0000
commit2cbc97d28aae138566e49df05e16d274b533ea86 (patch)
tree38e7ce8e8dd5280fa6f6122734ab4cf863af9355
parentf6cc73ba66f34d190b7c17421a62aa1256698431 (diff)
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>
-rw-r--r--src/sna/sna_accel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 9279b58b..3b3dc920 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -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,