From 2cbc97d28aae138566e49df05e16d274b533ea86 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 4 Jan 2012 12:32:06 +0000 Subject: [PATCH] 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 --- src/sna/sna_accel.c | 5 +++++ 1 file changed, 5 insertions(+) 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,