From: Dave Airlie <airl...@redhat.com> This is the default attachment, unbound gpu screens get attached to the 0 protocol screen.
detach on hotunplug. Signed-off-by: Dave Airlie <airl...@redhat.com> --- hw/xfree86/common/xf86Init.c | 3 +++ hw/xfree86/common/xf86platformBus.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index a60cf38..54fc523 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -920,6 +920,9 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv) #endif } + for (i = 0; i < xf86NumGPUScreens; i++) + AttachUnboundGPU(xf86Screens[0]->pScreen, xf86GPUScreens[i]->pScreen); + xf86VGAarbiterWrapFunctions(); xf86UnblockSIGIO(was_blocked); diff --git a/hw/xfree86/common/xf86platformBus.c b/hw/xfree86/common/xf86platformBus.c index f3dfebf..dbf588b 100644 --- a/hw/xfree86/common/xf86platformBus.c +++ b/hw/xfree86/common/xf86platformBus.c @@ -476,6 +476,8 @@ xf86platformRemoveDevice(int index) goto out; } + DetachUnboundGPU(xf86GPUScreens[i]->pScreen); + xf86GPUScreens[i]->pScreen->CloseScreen(xf86GPUScreens[i]->pScreen); RemoveGPUScreen(xf86GPUScreens[i]->pScreen); -- 1.7.10.2 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel