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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-08-24 14:00:34 +01:00
parent 8b0d69e76c
commit 7690346248
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {