During NVPciProbe, xf86ConfigPciEntity() implicitly calls checks and sets
the entity as shared
Here we are only allocating the screen, thus need to explicitly call the
functions

ZaphodHead and Xinerama should finally work

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56347

Reported-By: Vladimir Chebotarev <[email protected]>
Reported-By: Damian Nowak <[email protected]>
Tested-By: Damian Nowak <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
---
 src/nv_driver.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/nv_driver.c b/src/nv_driver.c
index f184cd4..83bb7f4 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -353,6 +353,11 @@ NVPlatformProbe(DriverPtr driver,
                scr_flags = XF86_ALLOCATE_GPU_SCREEN;
 
        scrn = xf86AllocateScreen(driver, scr_flags);
+       if (!scrn)
+               return FALSE;
+       
+       if (xf86IsEntitySharable(entity_num))
+               xf86SetEntityShared(entity_num);
        xf86AddEntityToScreen(scrn, entity_num);
 
        NVInitScrn(scrn, entity_num);
-- 
1.8.0

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to