Skip to contentSkip to conversation

nouveau: Add driver entry for vdpau

PATCH New Maarten Lankhorst 1 participant 1 message Aug 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nouveau: Add driver entry for vdpau

---

src/nouveau_dri2.c +10 -4
index 1a68ed3..e5dfce0 100644
@@ -429,12 +429,18 @@ nouveau_dri2_init(ScreenPtr pScreen)
 	ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
 	NVPtr pNv = NVPTR(pScrn);
 	DRI2InfoRec dri2 = { 0 };
+	const char *drivernames[2] = { };
 
-	if (pNv->Architecture >= NV_ARCH_30)
-		dri2.driverName = "nouveau";
-	else
-		dri2.driverName = "nouveau_vieux";
+	if (pNv->Architecture >= NV_ARCH_30) {
+		drivernames[0] = "nouveau";
+		drivernames[1] = "nouveau";
+		dri2.numDrivers = 2;
+	} else {
+		drivernames[0] = "nouveau_vieux";
+		dri2.numDrivers = 1;
+	}
 
+	dri2.driverNames = drivernames;
 	dri2.fd = nouveau_device(pNv->dev)->fd;
 	dri2.deviceName = pNv->drm_device_name;