[Nouveau] [PATCH 4/4] nouveau: NVPlatformProbe, handle shareable entities

Emil Velikov emil.l.velikov at gmail.com
Thu Nov 1 20:57:42 PDT 2012


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 <exc at rbcmail.ru>
Reported-By: Damian Nowak <nowaker at geozone.pl>
Tested-By: Damian Nowak <nowaker at geozone.pl>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 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



More information about the Nouveau mailing list