From 7690346248fd8d3460cc07f018827ff55b85d19d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 24 Aug 2013 14:00:34 +0100 Subject: [PATCH] sna: Don't copy fbcon if hosted When hosted, we have no idea what the right initial contents should be as we are independent of the CRTC and so the existing fb is irrelevant. Plus, not actually being master will cause the attempt to read back the bound framebuffer to fail... Signed-off-by: Chris Wilson --- src/sna/sna_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c index 83a5bba5..e6c424ae 100644 --- a/src/sna/sna_driver.c +++ b/src/sna/sna_driver.c @@ -259,7 +259,7 @@ static Bool sna_create_screen_resources(ScreenPtr screen) screen->SetScreenPixmap(sna->front); /* Only preserve the fbcon, not any subsequent server regens */ - if (serverGeneration == 1) + if (serverGeneration == 1 && (sna->flags & SNA_IS_HOSTED) == 0) sna_copy_fbcon(sna); if (!sna_become_master(sna)) {