I just noticed that in drivers/ati, every single function related to DRI
initialization,etc. is named RADEONDRIXxxxYyyy ... except
RADEONPreInitDRI()

Here's a patch to fix that, and R128PreInitDRI()


I had to make the patch "by hand" this time, since cvs seems down or
something.

--- /tmp/radeon_driver.c        2003-03-12 10:09:06.080000000 -0800
+++ radeon_driver.c     2003-03-12 10:10:05.600040000 -0800
@@ -2859,7 +2859,7 @@
 }
 
 #ifdef XF86DRI
-static Bool RADEONPreInitDRI(ScrnInfoPtr pScrn)
+static Bool RADEONDRIPreInit(ScrnInfoPtr pScrn)
 {
     RADEONInfoPtr  info = RADEONPTR(pScrn);
 
@@ -3182,7 +3182,7 @@
     if (!RADEONPreInitAccel(pScrn))              goto fail;
 
 #ifdef XF86DRI
-    if (!RADEONPreInitDRI(pScrn))                goto fail;
+    if (!RADEONDRIPreInit(pScrn))                goto fail;
 #endif
 
                                /* Free the video bios (if applicable) */
--- /tmp/r128_driver.c  2003-03-12 10:09:06.090000000 -0800
+++ r128_driver.c       2003-03-12 10:09:33.420044000 -0800
@@ -1664,7 +1664,7 @@
 }
 
 #ifdef XF86DRI
-static Bool R128PreInitDRI(ScrnInfoPtr pScrn)
+static Bool R128DRIPreInit(ScrnInfoPtr pScrn)
 {
     R128InfoPtr   info = R128PTR(pScrn);
 
@@ -1885,7 +1885,7 @@
     if (!R128PreInitAccel(pScrn))              goto fail;
 
 #ifdef XF86DRI
-    if (!R128PreInitDRI(pScrn))                goto fail;
+    if (!R128DRIPreInit(pScrn))                goto fail;
 #endif
 
                                /* Free the video bios (if applicable) */

Reply via email to