We are still actively working on the spam issue.

Radeon

From InstallGentoo Wiki
Revision as of 01:02, 3 November 2015 by Galactus (talk | contribs) (Created page with "{{Stub}} Radeon is the open source graphics driver for AMD/ATI Radeon graphics cards that is often replaced by fglrx due to seemingly poor 3D acceleration. This guide will at...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Radeon is the open source graphics driver for AMD/ATI Radeon graphics cards that is often replaced by fglrx due to seemingly poor 3D acceleration. This guide will attempt to fix this, mostly by making use of the new feature-set, namely, DRI3.

Before starting

Check your cards feature-set: https://wiki.freedesktop.org/xorg/RadeonFeature/#index6h2 "Decoder ring for engineering vs marketing names" will tell you what model your card actually is.

What should I expect?

Run: vblank_mode=0 glxgears & sleep 15 ; killall glxgears

280x (gigabyte) __ Before: 16067 frames in 5.0 seconds = 3213.298 FPS 16295 frames in 5.0 seconds = 3258.964 FPS __ After: 85556 frames in 5.0 seconds = 17111.051 FPS 90009 frames in 5.0 seconds = 18001.777 FPS

glxgears is a very simple test, but you can use it to test a driver's 3D performance relative to another one. As you can see here, the results speak for themselves and indicate a performance increase of roughly 560%.


Requirements & dependencies

X.Org Server 1.17 (not absolutely necessary, but recommended for stability) media-libs/mesa (the newest version you can find)

  `--  x11-libs/libdrm-2.4.65  (>=2.4.58)
  `--  x11-libs/libpciaccess (>=0.8.0)
  `--  x11-base/xorg-server
  `--  x11-libs/glamor (>=0.6)
  `--  virtual/udev-215  (virtual/udev) amd64 
  `--  x11-proto/fontsproto-2.1.3  (x11-proto/fontsproto) amd64 
  `--  x11-proto/randrproto-1.4.0-r1  (x11-proto/randrproto) amd64 
  `--  x11-proto/renderproto-0.11.1-r1  (x11-proto/renderproto) amd64 
  `--  x11-proto/videoproto-2.3.2  (x11-proto/videoproto) amd64 
  `--  x11-proto/xextproto-7.3.0  (x11-proto/xextproto) amd64 
  `--  x11-proto/xf86driproto-2.1.1-r1  (x11-proto/xf86driproto) amd64 
  `--  x11-proto/xproto-7.0.27  (x11-proto/xproto) amd64 
  `--  sys-devel/automake-1.15  (>=sys-devel/automake-1.15) amd64 
  `--  sys-devel/autoconf-2.69  (>=sys-devel/autoconf-2.69) amd64 
  `--  sys-devel/libtool-2.4.6  (>=sys-devel/libtool-2.4) amd64 
  `--  sys-devel/m4-1.4.16  (sys-devel/m4) amd64 
  `--  x11-misc/util-macros-1.19.0  (>=x11-misc/util-macros-1.18) amd64 
  `--  media-fonts/font-util-1.3.0  (>=media-fonts/font-util-1.2.0) amd64 
  `--  virtual/pkgconfig-0-r1  (virtual/pkgconfig) amd64 
  `--  x11-proto/glproto-1.4.17-r1  (x11-proto/glproto) ~amd64 
  `--  x11-proto/dri2proto-2.8-r1  (x11-proto/dri2proto) amd64 
  `--  x11-proto/xineramaproto-1.2.1-r1  (x11-proto/xineramaproto) amd64 

Note: apt and yum users need only run 'sudo apt-get build-dep xserver-xorg-video-ati' and 'sudo yum-builddep xorg-x11-drv-ati' respectively, to build the dependencies automagically. Arch users can do this with pkgbuild somehow, and gentoo users need only emerge the actual driver to have all the dependencies.

Building

 # git clone git://anongit.freedesktop.org/xorg/driver/xf86-video-ati
 # ./autogen.sh --prefix=/opt/xorg
 # make
 # sudo make install

Afterwards

 # sudo vim /etc/X11/xorg.conf
     Section "Files"
             ModulePath "/opt/xorg/lib/xorg/modules,/usr/lib/xorg/modules"
     EndSection

Make sure you have these as well:

     Section "Module"
             Load "dri" # CHECK THE RADEON FEATURE PAGE LISTED AT THE TOP OF THE WIKI TO SEE IF YOUR CARD SUPPORTS IT
             Load "dbe" # Double buffer extension
             Load "glx" # OpenGL X protocol interface
             Load "extmod" # Misc. required extension
     EndSection
     
     Section "DRI"
             Group        "video"
             Mode         0666
     EndSection
 #sudo vim /etc/X11/xorg.conf.d/20-radeon
     Section "Device"
             Identifier "radeonVGA"
                         Driver "radeon"
                         Option "AccelMethod" "Glamor"
                         Option "DRI3" "on"
                         Option "EnablePageFlip" "On"
     EndSection


Feel free to run sudo chattr +i /etc/X11/xorg.conf to keep X from overwriting this (chattr -i will undo this).

Example xorg.conf: http://pastebin.com/aE3e21Bn IMPORTANT: Recompiling the driver will become a necessity after each X upgrade.


External links

For more info (eg: building Mesa and libdrm from source): http://www.x.org/wiki/radeonBuildHowTo/