[Nouveau] [PATCH 4/4] nouveau: fix entity handling in NvPlatformProbe

Emil Velikov emil.l.velikov at gmail.com
Thu Nov 1 07:40:58 PDT 2012


Ensure that the entity is shareable, making ZaphodHeads work again
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56347

Connect entity to screen - should fix relative screen positioning in xorg.conf
Reported-by: shox on IRC

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/nv_driver.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/nv_driver.c b/src/nv_driver.c
index c1a50cd..7c7f822 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -84,6 +84,7 @@ NVPlatformProbe(DriverPtr driver,
 {
 	ScrnInfoPtr scrn = NULL;
 	uint32_t scr_flags = 0;
+	EntityInfoPtr pEnt = NULL;
 
 	if (!dev->pdev)
 		return FALSE;
@@ -112,6 +113,11 @@ NVPlatformProbe(DriverPtr driver,
 	scrn->LeaveVT          = NVLeaveVT;
 	scrn->FreeScreen       = NVFreeScreen;
 
+	xf86SetEntitySharable(entity_num);
+
+	pEnt = xf86GetEntityInfo(entity_num);
+	xf86SetEntityInstanceForScreen(scrn, pEnt->index, xf86GetNumEntityInstances(pEnt->index) - 1);
+	free(pEnt);
 	return TRUE;
 }
 #endif
-- 
1.8.0



More information about the Nouveau mailing list