You are not logged in.

#1 2009-01-02 22:04:11

BeholdMyGlory
Member
Registered: 2008-08-30
Posts: 93

Catalyst vs xf86-video-ati

Every gamer knows that on Linux, ATI - or rather, the ATI drivers - sucks. But I'm wondering how much better or worse the open source ati driver works.
My biggest problem is with a few games in Wine, for example Spore and a MMORPG called Tales of Pirates. In these games, I can still play the game itself, but almost all the 3D sprites are invisible. Things like trees, houses and such are still visible, but the creatures/characters themselves are not visible at all.
So, does anyone know whether xf86-video-ati handles Wine better than Catalyst? Because seeing as I'm not the expert at editing xorg.conf, and making sure the right packages are installed, and making sure the right drivers are loaded, I'd rather not go through a lot of hassle in vain.

Also, how does the open source driver work with Compiz/Kwin with compositing enabled?

Offline

#2 2009-01-02 22:52:07

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: Catalyst vs xf86-video-ati

The driver you naned, xf86-video-ati, is for 2D video only.  You may wish to try the radeonhd driver as I understand its come a fairly long way in terms of how well it renders 2D/3D apps and apparently it has recently improved its TV out capability (though I cannot verify any of this personally).

Offline

#3 2009-01-03 00:29:50

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Catalyst vs xf86-video-ati

The driver you naned, xf86-video-ati, is for 2D video only

Actually, it does both two- and three-dimensional acceleration, although it might not yet be implemented on some cards.  I believe it has now recently established three-dimensional acceleration on some Radeon HD cards, now.

Last edited by Wintervenom (2009-01-03 00:30:06)

Offline

#4 2009-01-03 00:59:26

redbit
Member
Registered: 2007-11-13
Posts: 57

Re: Catalyst vs xf86-video-ati

I'm using a Radeon Mobility 9700 with the xf86-video-ati driver and I can hardly play any 3D Game. It's way too slow. The latest catalyst drivers aren't working anymore (did they drop support for it?), so I can forget gaming in linux.

Last edited by redbit (2009-01-03 00:59:52)

Offline

#5 2009-01-03 01:53:36

gav616
Member
Registered: 2008-01-16
Posts: 182

Re: Catalyst vs xf86-video-ati

redbit wrote:

I'm using a Radeon Mobility 9700 with the xf86-video-ati driver and I can hardly play any 3D Game. It's way too slow. The latest catalyst drivers aren't working anymore (did they drop support for it?), so I can forget gaming in linux.

i initially had problems with fglrx 8.12 (dri symlinks conflict) but I've got it working now and its getting better each release.

i'am running a (still support?) 9800XT (r300)

p.s.

if/when xf86-video-ati supports savage (the game) ill switch. its a shame because 2D has excellent performance for me.

Last edited by gav616 (2009-01-03 01:56:04)

Offline

#6 2009-01-03 02:25:54

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Catalyst vs xf86-video-ati

I have a Mobility 9700 as well, doesn't the catalyst really work anymore? I'll try that tomorrow, seems pretty strange to me, it always worked, but sucked wink

Offline

#7 2009-01-03 08:18:12

redbit
Member
Registered: 2007-11-13
Posts: 57

Re: Catalyst vs xf86-video-ati

yeah it sucks but as far as it concerns performance of 3D applications it was quite good.

It gives me an memory allocation error when loading the fglrx module at boot time. I tried 9.11 and 9.12, both with the same error and I'm not alone with this problem.

You can read everywhere that the R300  chipset is already well documented by ATI and one could use the opensource driver instead. But only Battle for Wesnoth runs perfectly, nearly all other 3D games are slow as hell.

Last edited by redbit (2009-01-03 08:19:25)

Offline

#8 2009-01-03 14:04:26

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Catalyst vs xf86-video-ati

xf86-video-ati-git has great perfomance and no tearing during Compiz/KWin3d and Xv overlay video playback smile:)

X1600 here.

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
        EndSection

Section "Files"

    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/cyrillic"
    FontPath     "/usr/share/fonts/100dpi/:unscaled"
    FontPath     "/usr/share/fonts/75dpi/:unscaled"
    FontPath     "/usr/share/fonts/100dpi"
    FontPath     "/usr/share/fonts/75dpi"
    FontPath     "/usr/share/fonts/TTF"
EndSection

Section "Module"
    Load  "dbe"
    Load  "freetype"
    Load  "glx"
        Load  "drm"
    Load  "dri"
            SubSection "extmod"
        Option        "omit xfree86-dga"
    EndSubSection
EndSection

Section "ServerFlags"
        Option       "SwitchCoreKeyboard" "True"
EndSection


Section "Monitor"
    Identifier   "My Monitor"
    Option        "DPMS" "True"
    Option        "DPI" "96 x 96"
EndSection

Section "Device"
    Identifier  "My Graphics Card"
    Driver      "radeon"
        Option      "DynamicClocks" "on"
        Option      "AccelMethod" "EXA"
        Option      "EXAVSync" "on"
        Option      "DMAForXv" "on"
        Option      "EnablePageFlip" "on"
        Option      "ScalerWidth" "1920"
        #Option      "FBTexPercent" "0"
    BusID       "PCI:1:0:0"
EndSection

Section "Screen"

    Identifier "Default Screen"
    Device     "My Graphics Card"
    Monitor    "My Monitor"
    DefaultDepth     24
    Option        "UseEvents" "true"
    SubSection "Display"
        Viewport   0 0
        Depth     24
        Modes    "1280x800"
    EndSubSection
EndSection

Section "DRI"
    Mode         0666
EndSection

Section "Extensions"
    Option        "Composite" "Enable"
    Option        "RENDER" "Enable"
    Option        "DAMAGE" "Enable"
    Option        "XVideo" "Enable"
EndSection

Last edited by flamelab (2009-01-03 14:04:59)

Offline

#9 2009-01-03 14:19:49

BeholdMyGlory
Member
Registered: 2008-08-30
Posts: 93

Re: Catalyst vs xf86-video-ati

flamelab wrote:

xf86-video-ati-git has great perfomance and no tearing during Compiz/KWin3d and Xv overlay video playback smile:)

But is it stable? If so, I might give it a try...

But how do I go about changing the driver? Do I just install the new driver, and edit xorg.conf to load the right one?

Offline

#10 2009-01-03 17:57:25

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Catalyst vs xf86-video-ati

BeholdMyGlory wrote:
flamelab wrote:

xf86-video-ati-git has great perfomance and no tearing during Compiz/KWin3d and Xv overlay video playback smile:)

But is it stable? If so, I might give it a try...

But how do I go about changing the driver? Do I just install the new driver, and edit xorg.conf to load the right one?

It is VERY stable here, no probs.

Just remove catalyst-utils and catalyst, build xf86-video-ati-git with this PKGBUILD only:

PKGBUILD:

pkgname=xf86-video-ati-git
pkgver=20090102
pkgrel=1
_mesaver="7.2"
pkgdesc="X.org ati video driver"
arch=(i686 x86_64)
url="http://xorg.freedesktop.org/"
depends=('libdrm>=2.3.1' 'libgl>=7.2' 'libpciaccess')
makedepends=('pkgconfig' 'xorg-server>=1.5.0' "mesa>=${_mesaver}" 'fontsproto'
         'glproto' 'xf86driproto' 'diffutils' 'dri2proto' 'xorg-util-macros' 'git')
conflicts=('xorg-server<1.5.0')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/mesa3d/MesaLib-${_mesaver}.tar.bz2
       mesa-7.1-link-shared.patch)
md5sums=('04d379292e023df0b0266825cb0dbde5'
     'f0baa948d9810f268413111ee439d24b')

_gitroot="git://anongit.freedesktop.org/xorg/driver/xf86-video-ati"
_gitname="xf86-video-ati"

build() {
    cd $srcdir
    msg "Connecting to the GIT server...."
 
    if [[ -d $srcdir/$_gitname ]] ; then
        cd $_gitname
        git pull origin
        msg "The local files are updated."
    else
        git clone $_gitroot
    fi
    
    msg "GIT checkout done"
    msg "Starting make..."
    
    rm -rf $srcdir/$_gitname-build
    cp -r $srcdir/$_gitname $srcdir/$_gitname-build
    
    cd $srcdir/$_gitname-build
  ./autogen.sh --prefix=/usr/ --enable-dri || return 1
   make || return 1
   make DESTDIR=$startdir/pkg install
   install -Dm644 COPYING $startdir/pkg/usr/share/licenses/$_gitname/COPYING
   rm -rf $startdir/src/$_gitname-build

  cd "${srcdir}/Mesa-${_mesaver}"
  patch -Np1 -i "${srcdir}/mesa-7.1-link-shared.patch" || return 1
  ./configure --prefix=/usr \
    --with-dri-driverdir=/usr/lib/xorg/modules/dri \
    --with-dri-drivers=radeon,r200,r300 \
    --enable-glx-tls \
    --disable-ttm-api \
    --with-driver=dri \
    --enable-xcb \
    --disable-glu \
    --disable-glut \
    --disable-glw || return 1
  make || return 1
  cd src/mesa/drivers/dri || return 1
  make DESTDIR="${pkgdir}" install || return 1
  rm -f "${pkgdir}/usr/lib/xorg/modules/dri/libdricore.so"
  rm -rf "${pkgdir}/usr/include"
  rm -rf "${pkgdir}/usr/lib/pkgconfig"
}

instead of that one in AUR and the

mesa-7.1-link-shared.patch

diff -up mesa-20080814/src/mesa/drivers/dri/Makefile.dricore mesa-20080814/src/mesa/drivers/dri/Makefile
--- mesa-20080814/src/mesa/drivers/dri/Makefile.dricore    2008-08-14 02:28:38.000000000 +1000
+++ mesa-20080814/src/mesa/drivers/dri/Makefile    2008-08-14 16:18:20.000000000 +1000
@@ -6,12 +6,17 @@ include $(TOP)/configs/current
 
 
 
-default: $(TOP)/$(LIB_DIR) subdirs
+default: $(TOP)/$(LIB_DIR) $(TOP)/$(LIB_DIR)/libdricore.so subdirs
 
 
 $(TOP)/$(LIB_DIR):
     -mkdir $(TOP)/$(LIB_DIR)
 
+libdricore.so:
+    gcc -shared -o libdricore.so -Wl,--whole-archive ../../libmesa.a -Wl,--no-whole-archive -lm -lpthread -lc
+
+$(TOP)/$(LIB_DIR)/libdricore.so: $(TOP)/$(LIB_DIR) libdricore.so
+    $(INSTALL) libdricore.so $(TOP)/$(LIB_DIR) 
 
 subdirs:
     @for dir in $(DRI_DIRS) ; do \
@@ -31,12 +36,14 @@ dri.pc: dri.pc.in
     $(pcedit) $< > $@
 
 
-install: dri.pc
+install: dri.pc $(TOP)/$(LIB_DIR)/libdricore.so
     @for dir in $(DRI_DIRS) ; do \
         if [ -d $$dir ] ; then \
             (cd $$dir && $(MAKE) install) || exit 1 ; \
         fi \
     done
+    $(INSTALL) -d $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
+    $(INSTALL) -m 755 $(TOP)/$(LIB_DIR)/libdricore.so $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
     $(INSTALL) -d $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
     $(INSTALL) -m 0644 $(TOP)/include/GL/internal/dri_interface.h \
       $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
@@ -52,5 +59,6 @@ clean:
             (cd $$dir && $(MAKE) clean) ; \
         fi \
     done
+    -rm -f libdricore.so $(TOP)/$(LIB_DIR)/libdricore.so
     -rm -f common/*.o
     -rm -f *.pc
diff -up mesa-20080814/src/mesa/drivers/dri/Makefile.template.dricore mesa-20080814/src/mesa/drivers/dri/Makefile.template
--- mesa-20080814/src/mesa/drivers/dri/Makefile.template.dricore    2008-08-14 02:28:38.000000000 +1000
+++ mesa-20080814/src/mesa/drivers/dri/Makefile.template    2008-08-14 16:19:37.000000000 +1000
@@ -1,6 +1,6 @@
 # -*-makefile-*-
 
-MESA_MODULES = $(TOP)/src/mesa/libmesa.a
+MESA_MODULES = $(TOP)/$(LIB_DIR)/libdricore.so
 
 COMMON_SOURCES = \
         ../common/utils.c \
@@ -64,7 +64,9 @@ default: symlinks depend $(LIBNAME) $(TO
 
 $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile $(TOP)/src/mesa/drivers/dri/Makefile.template
     $(MKLIB) -o $@ -noprefix -linker '$(CC)' -ldflags '$(LDFLAGS)' \
-        $(OBJECTS) $(MESA_MODULES) $(WINOBJ) $(DRI_LIB_DEPS)
+        $(OBJECTS) $(WINOBJ) \
+        -L$(TOP)/$(LIB_DIR) -Wl,-R$(DRI_DRIVER_INSTALL_DIR) -ldricore \
+        $(DRI_LIB_DEPS)
 
 
 $(TOP)/$(LIB_DIR)/$(LIBNAME): $(LIBNAME)
diff -up mesa-20080814/src/mesa/x86/read_rgba_span_x86.S.dricore mesa-20080814/src/mesa/x86/read_rgba_span_x86.S
--- mesa-20080814/src/mesa/x86/read_rgba_span_x86.S.dricore    2008-08-14 02:28:38.000000000 +1000
+++ mesa-20080814/src/mesa/x86/read_rgba_span_x86.S    2008-08-14 16:16:49.000000000 +1000
@@ -77,7 +77,6 @@
  */
 
 .globl _generic_read_RGBA_span_BGRA8888_REV_MMX
-.hidden _generic_read_RGBA_span_BGRA8888_REV_MMX
     .type    _generic_read_RGBA_span_BGRA8888_REV_MMX, @function
 _generic_read_RGBA_span_BGRA8888_REV_MMX:
     pushl    %ebx
@@ -172,7 +171,6 @@ _generic_read_RGBA_span_BGRA8888_REV_MMX
  */
 
 .globl _generic_read_RGBA_span_BGRA8888_REV_SSE
-.hidden _generic_read_RGBA_span_BGRA8888_REV_SSE
     .type    _generic_read_RGBA_span_BGRA8888_REV_SSE, @function
 _generic_read_RGBA_span_BGRA8888_REV_SSE:
     pushl    %esi
@@ -335,7 +333,6 @@ _generic_read_RGBA_span_BGRA8888_REV_SSE
 
     .text
 .globl _generic_read_RGBA_span_BGRA8888_REV_SSE2
-.hidden _generic_read_RGBA_span_BGRA8888_REV_SSE2
     .type    _generic_read_RGBA_span_BGRA8888_REV_SSE2, @function
 _generic_read_RGBA_span_BGRA8888_REV_SSE2:
     pushl    %esi
@@ -494,7 +491,6 @@ _generic_read_RGBA_span_BGRA8888_REV_SSE
 
     .text
     .globl    _generic_read_RGBA_span_RGB565_MMX
-        .hidden _generic_read_RGBA_span_RGB565_MMX
     .type    _generic_read_RGBA_span_RGB565_MMX, @function
 
 _generic_read_RGBA_span_RGB565_MMX:

+ the xorg.conf (you change the options to your needs) in my previous post.

Offline

#11 2009-01-03 19:44:19

BeholdMyGlory
Member
Registered: 2008-08-30
Posts: 93

Re: Catalyst vs xf86-video-ati

flamelab wrote:

mesa-7.1-link-shared.patch

diff -up mesa-20080814/src/mesa/drivers/dri/Makefile.dricore mesa-20080814/src/mesa/drivers/dri/Makefile
--- mesa-20080814/src/mesa/drivers/dri/Makefile.dricore    2008-08-14 02:28:38.000000000 +1000
+++ mesa-20080814/src/mesa/drivers/dri/Makefile    2008-08-14 16:18:20.000000000 +1000
@@ -6,12 +6,17 @@ include $(TOP)/configs/current
 
 
 
-default: $(TOP)/$(LIB_DIR) subdirs
+default: $(TOP)/$(LIB_DIR) $(TOP)/$(LIB_DIR)/libdricore.so subdirs
 
 
 $(TOP)/$(LIB_DIR):
     -mkdir $(TOP)/$(LIB_DIR)
 
+libdricore.so:
+    gcc -shared -o libdricore.so -Wl,--whole-archive ../../libmesa.a -Wl,--no-whole-archive -lm -lpthread -lc
+
+$(TOP)/$(LIB_DIR)/libdricore.so: $(TOP)/$(LIB_DIR) libdricore.so
+    $(INSTALL) libdricore.so $(TOP)/$(LIB_DIR) 
 
 subdirs:
     @for dir in $(DRI_DIRS) ; do \
@@ -31,12 +36,14 @@ dri.pc: dri.pc.in
     $(pcedit) $< > $@
 
 
-install: dri.pc
+install: dri.pc $(TOP)/$(LIB_DIR)/libdricore.so
     @for dir in $(DRI_DIRS) ; do \
         if [ -d $$dir ] ; then \
             (cd $$dir && $(MAKE) install) || exit 1 ; \
         fi \
     done
+    $(INSTALL) -d $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
+    $(INSTALL) -m 755 $(TOP)/$(LIB_DIR)/libdricore.so $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
     $(INSTALL) -d $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
     $(INSTALL) -m 0644 $(TOP)/include/GL/internal/dri_interface.h \
       $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
@@ -52,5 +59,6 @@ clean:
             (cd $$dir && $(MAKE) clean) ; \
         fi \
     done
+    -rm -f libdricore.so $(TOP)/$(LIB_DIR)/libdricore.so
     -rm -f common/*.o
     -rm -f *.pc
diff -up mesa-20080814/src/mesa/drivers/dri/Makefile.template.dricore mesa-20080814/src/mesa/drivers/dri/Makefile.template
--- mesa-20080814/src/mesa/drivers/dri/Makefile.template.dricore    2008-08-14 02:28:38.000000000 +1000
+++ mesa-20080814/src/mesa/drivers/dri/Makefile.template    2008-08-14 16:19:37.000000000 +1000
@@ -1,6 +1,6 @@
 # -*-makefile-*-
 
-MESA_MODULES = $(TOP)/src/mesa/libmesa.a
+MESA_MODULES = $(TOP)/$(LIB_DIR)/libdricore.so
 
 COMMON_SOURCES = \
         ../common/utils.c \
@@ -64,7 +64,9 @@ default: symlinks depend $(LIBNAME) $(TO
 
 $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile $(TOP)/src/mesa/drivers/dri/Makefile.template
     $(MKLIB) -o $@ -noprefix -linker '$(CC)' -ldflags '$(LDFLAGS)' \
-        $(OBJECTS) $(MESA_MODULES) $(WINOBJ) $(DRI_LIB_DEPS)
+        $(OBJECTS) $(WINOBJ) \
+        -L$(TOP)/$(LIB_DIR) -Wl,-R$(DRI_DRIVER_INSTALL_DIR) -ldricore \
+        $(DRI_LIB_DEPS)
 
 
 $(TOP)/$(LIB_DIR)/$(LIBNAME): $(LIBNAME)
diff -up mesa-20080814/src/mesa/x86/read_rgba_span_x86.S.dricore mesa-20080814/src/mesa/x86/read_rgba_span_x86.S
--- mesa-20080814/src/mesa/x86/read_rgba_span_x86.S.dricore    2008-08-14 02:28:38.000000000 +1000
+++ mesa-20080814/src/mesa/x86/read_rgba_span_x86.S    2008-08-14 16:16:49.000000000 +1000
@@ -77,7 +77,6 @@
  */
 
 .globl _generic_read_RGBA_span_BGRA8888_REV_MMX
-.hidden _generic_read_RGBA_span_BGRA8888_REV_MMX
     .type    _generic_read_RGBA_span_BGRA8888_REV_MMX, @function
 _generic_read_RGBA_span_BGRA8888_REV_MMX:
     pushl    %ebx
@@ -172,7 +171,6 @@ _generic_read_RGBA_span_BGRA8888_REV_MMX
  */
 
 .globl _generic_read_RGBA_span_BGRA8888_REV_SSE
-.hidden _generic_read_RGBA_span_BGRA8888_REV_SSE
     .type    _generic_read_RGBA_span_BGRA8888_REV_SSE, @function
 _generic_read_RGBA_span_BGRA8888_REV_SSE:
     pushl    %esi
@@ -335,7 +333,6 @@ _generic_read_RGBA_span_BGRA8888_REV_SSE
 
     .text
 .globl _generic_read_RGBA_span_BGRA8888_REV_SSE2
-.hidden _generic_read_RGBA_span_BGRA8888_REV_SSE2
     .type    _generic_read_RGBA_span_BGRA8888_REV_SSE2, @function
 _generic_read_RGBA_span_BGRA8888_REV_SSE2:
     pushl    %esi
@@ -494,7 +491,6 @@ _generic_read_RGBA_span_BGRA8888_REV_SSE
 
     .text
     .globl    _generic_read_RGBA_span_RGB565_MMX
-        .hidden _generic_read_RGBA_span_RGB565_MMX
     .type    _generic_read_RGBA_span_RGB565_MMX, @function
 
 _generic_read_RGBA_span_RGB565_MMX:

+ the xorg.conf (you change the options to your needs) in my previous post.

I get:

==> Validating source files with md5sums...
    MesaLib-7.2.tar.bz2 ... Passed
    mesa-7.1-link-shared.patch ... FAILED

And I don't want to remove the md5sums check, in case there's something missing.

Offline

#12 2009-01-03 20:09:00

zhuqin
Member
Registered: 2008-01-31
Posts: 61

Re: Catalyst vs xf86-video-ati

just do pacman -Sy xf86-video-ati, it's almost the same as the git one.

Offline

#13 2009-01-03 23:13:56

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Catalyst vs xf86-video-ati

zhuqin wrote:

just do pacman -Sy xf86-video-ati, it's almost the same as the git one.

No it isn't. The git one hasn't the changes that remove the flickering during Xv overlay.

Offline

#14 2009-01-03 23:14:48

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Catalyst vs xf86-video-ati

BeholdMyGlory wrote:
flamelab wrote:

mesa-7.1-link-shared.patch

diff -up mesa-20080814/src/mesa/drivers/dri/Makefile.dricore mesa-20080814/src/mesa/drivers/dri/Makefile
--- mesa-20080814/src/mesa/drivers/dri/Makefile.dricore    2008-08-14 02:28:38.000000000 +1000
+++ mesa-20080814/src/mesa/drivers/dri/Makefile    2008-08-14 16:18:20.000000000 +1000
@@ -6,12 +6,17 @@ include $(TOP)/configs/current
 
 
 
-default: $(TOP)/$(LIB_DIR) subdirs
+default: $(TOP)/$(LIB_DIR) $(TOP)/$(LIB_DIR)/libdricore.so subdirs
 
 
 $(TOP)/$(LIB_DIR):
     -mkdir $(TOP)/$(LIB_DIR)
 
+libdricore.so:
+    gcc -shared -o libdricore.so -Wl,--whole-archive ../../libmesa.a -Wl,--no-whole-archive -lm -lpthread -lc
+
+$(TOP)/$(LIB_DIR)/libdricore.so: $(TOP)/$(LIB_DIR) libdricore.so
+    $(INSTALL) libdricore.so $(TOP)/$(LIB_DIR) 
 
 subdirs:
     @for dir in $(DRI_DIRS) ; do \
@@ -31,12 +36,14 @@ dri.pc: dri.pc.in
     $(pcedit) $< > $@
 
 
-install: dri.pc
+install: dri.pc $(TOP)/$(LIB_DIR)/libdricore.so
     @for dir in $(DRI_DIRS) ; do \
         if [ -d $$dir ] ; then \
             (cd $$dir && $(MAKE) install) || exit 1 ; \
         fi \
     done
+    $(INSTALL) -d $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
+    $(INSTALL) -m 755 $(TOP)/$(LIB_DIR)/libdricore.so $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
     $(INSTALL) -d $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
     $(INSTALL) -m 0644 $(TOP)/include/GL/internal/dri_interface.h \
       $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
@@ -52,5 +59,6 @@ clean:
             (cd $$dir && $(MAKE) clean) ; \
         fi \
     done
+    -rm -f libdricore.so $(TOP)/$(LIB_DIR)/libdricore.so
     -rm -f common/*.o
     -rm -f *.pc
diff -up mesa-20080814/src/mesa/drivers/dri/Makefile.template.dricore mesa-20080814/src/mesa/drivers/dri/Makefile.template
--- mesa-20080814/src/mesa/drivers/dri/Makefile.template.dricore    2008-08-14 02:28:38.000000000 +1000
+++ mesa-20080814/src/mesa/drivers/dri/Makefile.template    2008-08-14 16:19:37.000000000 +1000
@@ -1,6 +1,6 @@
 # -*-makefile-*-
 
-MESA_MODULES = $(TOP)/src/mesa/libmesa.a
+MESA_MODULES = $(TOP)/$(LIB_DIR)/libdricore.so
 
 COMMON_SOURCES = \
         ../common/utils.c \
@@ -64,7 +64,9 @@ default: symlinks depend $(LIBNAME) $(TO
 
 $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile $(TOP)/src/mesa/drivers/dri/Makefile.template
     $(MKLIB) -o $@ -noprefix -linker '$(CC)' -ldflags '$(LDFLAGS)' \
-        $(OBJECTS) $(MESA_MODULES) $(WINOBJ) $(DRI_LIB_DEPS)
+        $(OBJECTS) $(WINOBJ) \
+        -L$(TOP)/$(LIB_DIR) -Wl,-R$(DRI_DRIVER_INSTALL_DIR) -ldricore \
+        $(DRI_LIB_DEPS)
 
 
 $(TOP)/$(LIB_DIR)/$(LIBNAME): $(LIBNAME)
diff -up mesa-20080814/src/mesa/x86/read_rgba_span_x86.S.dricore mesa-20080814/src/mesa/x86/read_rgba_span_x86.S
--- mesa-20080814/src/mesa/x86/read_rgba_span_x86.S.dricore    2008-08-14 02:28:38.000000000 +1000
+++ mesa-20080814/src/mesa/x86/read_rgba_span_x86.S    2008-08-14 16:16:49.000000000 +1000
@@ -77,7 +77,6 @@
  */
 
 .globl _generic_read_RGBA_span_BGRA8888_REV_MMX
-.hidden _generic_read_RGBA_span_BGRA8888_REV_MMX
     .type    _generic_read_RGBA_span_BGRA8888_REV_MMX, @function
 _generic_read_RGBA_span_BGRA8888_REV_MMX:
     pushl    %ebx
@@ -172,7 +171,6 @@ _generic_read_RGBA_span_BGRA8888_REV_MMX
  */
 
 .globl _generic_read_RGBA_span_BGRA8888_REV_SSE
-.hidden _generic_read_RGBA_span_BGRA8888_REV_SSE
     .type    _generic_read_RGBA_span_BGRA8888_REV_SSE, @function
 _generic_read_RGBA_span_BGRA8888_REV_SSE:
     pushl    %esi
@@ -335,7 +333,6 @@ _generic_read_RGBA_span_BGRA8888_REV_SSE
 
     .text
 .globl _generic_read_RGBA_span_BGRA8888_REV_SSE2
-.hidden _generic_read_RGBA_span_BGRA8888_REV_SSE2
     .type    _generic_read_RGBA_span_BGRA8888_REV_SSE2, @function
 _generic_read_RGBA_span_BGRA8888_REV_SSE2:
     pushl    %esi
@@ -494,7 +491,6 @@ _generic_read_RGBA_span_BGRA8888_REV_SSE
 
     .text
     .globl    _generic_read_RGBA_span_RGB565_MMX
-        .hidden _generic_read_RGBA_span_RGB565_MMX
     .type    _generic_read_RGBA_span_RGB565_MMX, @function
 
 _generic_read_RGBA_span_RGB565_MMX:

+ the xorg.conf (you change the options to your needs) in my previous post.

I get:

==> Validating source files with md5sums...
    MesaLib-7.2.tar.bz2 ... Passed
    mesa-7.1-link-shared.patch ... FAILED

And I don't want to remove the md5sums check, in case there's something missing.

It is OK, build it.

Last edited by flamelab (2009-01-03 23:15:02)

Offline

#15 2009-01-03 23:37:02

zhuqin
Member
Registered: 2008-01-31
Posts: 61

Re: Catalyst vs xf86-video-ati

flamelab wrote:
zhuqin wrote:

just do pacman -Sy xf86-video-ati, it's almost the same as the git one.

No it isn't. The git one hasn't the changes that remove the flickering during Xv overlay.

Really? The latest ati driver in the testing repo is 6.9.0.91, it does contains EXAVsync feature.
http://cgit.freedesktop.org/xorg/driver … o-ati/log/

Offline

#16 2009-01-04 00:57:49

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: Catalyst vs xf86-video-ati

zhuqin wrote:
flamelab wrote:
zhuqin wrote:

just do pacman -Sy xf86-video-ati, it's almost the same as the git one.

No it isn't. The git one hasn't the changes that remove the flickering during Xv overlay.

Really? The latest ati driver in the testing repo is 6.9.0.91, it does contains EXAVsync feature.
http://cgit.freedesktop.org/xorg/driver … o-ati/log/

It is in testing though. I wouldn't recommend opening the testing repo for just once and the "closing" it (because if there is a revision in that package in testing, he wouldn't have the chance to get it).

Offline

#17 2009-01-04 15:16:47

scottishduck
Member
Registered: 2008-12-30
Posts: 6

Re: Catalyst vs xf86-video-ati

Unless your an OSS buff then I would have to reccomend catalyst. I've had no problems since 8.12 entered the extra repo.

Offline

#18 2009-01-04 16:20:45

redbit
Member
Registered: 2007-11-13
Posts: 57

Re: Catalyst vs xf86-video-ati

Army wrote:

I have a Mobility 9700 as well, doesn't the catalyst really work anymore? I'll try that tomorrow, seems pretty strange to me, it always worked, but sucked wink

Hey Army, have you tried it already? I'm really interested if it works for you.

Offline

#19 2009-01-04 20:52:41

neowolf
Member
From: North Carolina
Registered: 2008-01-27
Posts: 105

Re: Catalyst vs xf86-video-ati

Switched to the radeon driver today, using the testing xf86-video-ati package. Finally video with no tearing what so ever! Couldn't get this before on fireglx, radeon, or radeonhd! Reduced 3D support is a pity, but hardly a large concern for me.

Offline

Board footer

Powered by FluxBB