xf86-video-ati: Branch 'master'

Michel Dänzer daenzer at kemper.freedesktop.org
Wed Oct 19 09:01:25 PDT 2011


 src/radeon_dri2.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f6f1b4f7789cfef763c063e671b76b60be8bdd8e
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Tue Oct 18 14:30:39 2011 +0200

    dri2: Add vdpau driver name entry
    
    libvdpau has a driver loading mechanism that looks for a dri2 driver
    first before falling back to nvidia, so lets use that.
    
    Allows use of libvdpau_rx00 without having to set things up separately,
    similar to the patch to xf86-video-nouveau.
    
    Signed-off-by: Maarten Lankhorst <m.b.lankhorst at gmail.com>
    Reviewed-by: Christian König <deathsimple at vodafone.de>
    Reviewed-by: Michel Dänzer <michel at daenzer.net>
    Tested-by: Michel Dänzer <michel at daenzer.net>

diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 46573a7..88117a5 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -1299,7 +1299,7 @@ radeon_dri2_screen_init(ScreenPtr pScreen)
     DRI2InfoRec dri2_info = { 0 };
 #ifdef USE_DRI2_SCHEDULING
     RADEONEntPtr pRADEONEnt   = RADEONEntPriv(pScrn);
-    const char *driverNames[1];
+    const char *driverNames[2];
     Bool scheduling_works = TRUE;
 #endif
 
@@ -1364,9 +1364,9 @@ radeon_dri2_screen_init(ScreenPtr pScreen)
         dri2_info.ScheduleSwap = radeon_dri2_schedule_swap;
         dri2_info.GetMSC = radeon_dri2_get_msc;
         dri2_info.ScheduleWaitMSC = radeon_dri2_schedule_wait_msc;
-        dri2_info.numDrivers = 1;
+        dri2_info.numDrivers = RADEON_ARRAY_SIZE(driverNames);
         dri2_info.driverNames = driverNames;
-        driverNames[0] = dri2_info.driverName;
+        driverNames[0] = driverNames[1] = dri2_info.driverName;
 
 	if (pRADEONEnt->dri2_info_cnt == 0) {
 #if HAS_DIXREGISTERPRIVATEKEY


More information about the xorg-commit mailing list