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:
parent
8b0d69e76c
commit
7690346248
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue