* [PATCH] nouveau: Add driver entry for vdpau
@ 2011-08-16 20:19 Maarten Lankhorst
0 siblings, 0 replies; only message in thread
From: Maarten Lankhorst @ 2011-08-16 20:19 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Signed-off-by: Maarten Lankhorst <m.b.lankhorst-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
index 1a68ed3..e5dfce0 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-16 20:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 20:19 [PATCH] nouveau: Add driver entry for vdpau Maarten Lankhorst
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.