Announcement

Collapse
No announcement yet.

Enabling DRI3 Is Still An Easy Performance Hack Relevant For Ubuntu 16.04 Systems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Enabling DRI3 Is Still An Easy Performance Hack Relevant For Ubuntu 16.04 Systems

    Phoronix: Enabling DRI3 Is Still An Easy Performance Hack Relevant For Ubuntu 16.04 Systems

    While some distributions like Fedora have opted to enable DRI3 by default with their (mostly Intel) X.Org driver packages, Ubuntu 16.04 didn't pursue such behavior. But that just means with an easy xorg.conf tweak you can generally get better performance unless you happen to hit one of the few remaining DRI3-related issues...

    http://www.phoronix.com/scan.php?pag...04-Enable-DRI3

  • #2
    Thanks for the great tip.
    I'm not used to the open driver yet (after 10 years of the no longer supported fglrx), so as a remainder of how to configure my system with DRI3, I usually search for your previous articles mentioning how to set up r.conf to get there.

    Very helpful.

    Comment


    • #3
      DRI3 on intel ddx was just too buggy to be enabled on 16.04

      Comment


      • #4
        Unfortunately I cannot get it to work right now...
        All of those won't work:
        Option "DRI3" "on"
        Option "DRI3" "1"
        Option "DRI" "3"

        I always get
        modeset(0): Option "DRI3" is not used
        or
        modeset(0): Option "DRI" is not used

        I'm looking at the proper log btw, the time/dates match.

        GPU is radeonsi on Tahiti, newest padoka

        Code:
        [email protected]:~$ glxinfo | grep Open
        OpenGL vendor string: X.Org
        OpenGL renderer string: Gallium 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)
        OpenGL core profile version string: 4.2 (Core Profile) Mesa 11.3.0-devel (padoka PPA)
        OpenGL core profile shading language version string: 4.20
        OpenGL core profile context flags: (none)
        OpenGL core profile profile mask: core profile
        OpenGL core profile extensions:
        OpenGL version string: 3.0 Mesa 11.3.0-devel (padoka PPA)
        OpenGL shading language version string: 1.30
        OpenGL context flags: (none)
        OpenGL extensions:
        OpenGL ES profile version string: OpenGL ES 3.1 Mesa 11.3.0-devel (padoka PPA)
        OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
        OpenGL ES profile extensions:
        
        [email protected]:~$ cat /var/log/Xorg.0.log | grep DRI
        [  1695.055] (II) glamor: EGL version 1.4 (DRI2):
        [  1695.287] (WW) modeset(0): Option "DRI3" is not used
        [  1695.287] (II) modeset(0): [DRI2] Setup complete
        [  1695.287] (II) modeset(0): [DRI2]   DRI driver: radeonsi
        [  1695.287] (II) modeset(0): [DRI2]   VDPAU driver: radeonsi
        [  1695.291] (II) GLX: Initialized DRI2 GL provider for screen 0
        
        [email protected]:~$ cat /usr/share/X11/xorg.conf.d/20-radeon.conf
        Section "Device"
           Identifier "Radeon"
           Driver "radeon"
           Option "ColorTiling" "on"
           Option "DRI3" "on"
        EndSection
        Anyone have an idea?

        Comment


        • #5
          Originally posted by caEmber View Post
          Unfortunately I cannot get it to work right now...
          All of those won't work:
          Option "DRI3" "on"
          Option "DRI3" "1"
          Option "DRI" "3"

          I always get
          modeset(0): Option "DRI3" is not used
          or
          modeset(0): Option "DRI" is not used
          ...

          [email protected]:~$ cat /usr/share/X11/xorg.conf.d/20-radeon.conf
          Section "Device"
          Identifier "Radeon"
          Driver "radeon"
          Option "ColorTiling" "on"
          Option "DRI3" "on"
          EndSection
          [/CODE]

          Anyone have an idea?
          Fairly sure `Option "DRI" "3"` is the correct one.

          It used to be the "DRI3" but that was changed a few weeks ago, IIRC. That said, it doesn't enable it on my Intel work machine but does on my AMD box.

          Comment


          • #6
            My /etc/X11/xorg.conf.d/radeon.conf looks like this:

            Code:
            Section "Device"
                    Identifier  "HD7850"
                    Driver "radeon"
                    option "swapbufferwait" "0"
                    Option "ColorTiling" "on"
                    Option "DRI3"        "1"
                    option "AccelMethod"  "glamor"
            Endsection
            Perhaps it's an starting point for you

            Comment


            • #7
              Originally posted by caEmber View Post
              ...
              DRI setting in xorg.conf doesn't matter and is ignored (at least on my machine).

              Use this:

              $ LIBGL_DEBUG=verbose vblank_mode=0 fgl_glxgears (with "glxgears" it's unclear whether there's a difference in FPS)
              Using GLX_SGIX_pbuffer
              libGL: pci id for fd 4: 1002:67b1, driver radeonsi
              libGL: OpenDriver: trying /usr/lib64/dri/tls/radeonsi_dri.so
              libGL: OpenDriver: trying /usr/lib64/dri/radeonsi_dri.so
              libGL: Using DRI3 for screen 0
              10820 frames in 5.0 seconds = 2164.000 FPS
              12168 frames in 5.0 seconds = 2433.600 FPS
              12175 frames in 5.0 seconds = 2435.000 FPS
              12172 frames in 5.0 seconds = 2434.400 FPS

              $ LIBGL_DEBUG=verbose LIBGL_DRI3_DISABLE=foo vblank_mode=0 fgl_glxgears
              Using GLX_SGIX_pbuffer
              libGL: OpenDriver: trying /usr/lib64/dri/tls/radeonsi_dri.so
              libGL: OpenDriver: trying /usr/lib64/dri/radeonsi_dri.so
              libGL: Using DRI2 for screen 0
              10036 frames in 5.0 seconds = 2007.200 FPS
              11491 frames in 5.0 seconds = 2298.200 FPS
              11494 frames in 5.0 seconds = 2298.800 FPS
              11493 frames in 5.0 seconds = 2298.600 FPS

              http://www.mesa3d.org/envvars.html

              Comment


              • #8
                Originally posted by phoronix View Post
                Phoronix: Enabling DRI3 Is Still An Easy Performance Hack Relevant For Ubuntu 16.04 Systems

                While some distributions like Fedora have opted to enable DRI3 by default with their (mostly Intel) X.Org driver packages, Ubuntu 16.04 didn't pursue such behavior. But that just means with an easy xorg.conf tweak you can generally get better performance unless you happen to hit one of the few remaining DRI3-related issues...

                http://www.phoronix.com/scan.php?pag...04-Enable-DRI3
                Michael, please read my post https://www.phoronix.com/forums/foru...953#post866953 and fix the article if possible.

                Comment


                • #9
                  My /etc/X11/ looks so:

                  $ ls -al /etc/X11/
                  total 88
                  drwxr-xr-x 11 root root 4096 Apr 21 02:14 .
                  drwxr-xr-x 130 root root 12288 Apr 22 16:47 ..
                  drwxr-xr-x 2 root root 4096 Apr 21 02:15 app-defaults
                  drwxr-xr-x 2 root root 4096 Apr 21 02:15 cursors
                  -rw-r--r-- 1 root root 18 Apr 21 02:14 default-display-manager
                  drwxr-xr-x 4 root root 4096 Apr 21 02:13 fonts
                  -rw-r--r-- 1 root root 17394 Nov 10 16:34 rgb.txt
                  drwxr-xr-x 3 root root 4096 Apr 22 16:08 xinit
                  drwxr-xr-x 2 root root 4096 Jan 22 12:38 xkb
                  -rwxr-xr-x 1 root root 709 Nov 10 16:34 Xreset
                  drwxr-xr-x 2 root root 4096 Apr 21 02:14 Xreset.d
                  drwxr-xr-x 2 root root 4096 Apr 21 02:14 Xresources
                  -rwxr-xr-x 1 root root 3730 Mar 4 18:49 Xsession
                  drwxr-xr-x 2 root root 4096 Apr 21 02:15 Xsession.d
                  -rw-r--r-- 1 root root 265 Nov 10 16:34 Xsession.options
                  drwxr-xr-x 2 root root 4096 Apr 21 02:15 xsm


                  I can't find any .conf file anywhere.

                  Comment


                  • #10
                    Originally posted by caEmber View Post
                    Unfortunately I cannot get it to work right now...
                    All of those won't work:
                    Option "DRI3" "on"
                    Option "DRI3" "1"
                    Option "DRI" "3"

                    I always get
                    modeset(0): Option "DRI3" is not used
                    or
                    modeset(0): Option "DRI" is not used

                    I'm looking at the proper log btw, the time/dates match.

                    GPU is radeonsi on Tahiti, newest padoka


                    Anyone have an idea?
                    Don't guess the right option, instead read "man radeon" or "man amdgpu" and you will see that it's Option "DRI" "3".

                    Last edited by Nille_kungen; 22 April 2016, 10:13 AM.

                    Comment

                    Working...
                    X