Announcement

Collapse
No announcement yet.

GLX DRI3 GPU Offloading Lands In Mesa

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

  • #31
    Originally posted by sarmad View Post
    Does this mean we can finally get a tearing-free DRI_PRIME support?
    If you enforce compositing, even for fullscreen applications, you should already have not tearing problems with old DRI_PRIME.

    However new DRI_PRIME will enable you to have no tearings too if the game uses vsync and there is no compositing.

    Comment


    • #32
      Originally posted by mannerov View Post
      If you enforce compositing, even for fullscreen applications, you should already have not tearing problems with old DRI_PRIME.

      However new DRI_PRIME will enable you to have no tearings too if the game uses vsync and there is no compositing.
      What do you mean by "enforce compositing"? I am using Gnome Shell (Fedora 20) but I still get tearing all over the place. Doesn't Gnome Shell use compositing?

      Comment


      • #33
        how enable prime with dri3?

        Code:
        cat /var/log/Xorg.0.log|grep DRI3
        [    34.621] (II) intel(0): direct rendering: DRI2 DRI3 enabled
        Code:
        xrandr --setprovideroffloadsink 1 0
        LIBGL_DEBUG=verbose DRI_PRIME=1 glxinfo|grep "OpenGL renderer string"
        libGL: pci id for fd 4: 8086:0152, driver i965
        libGL: OpenDriver: trying /usr/lib64/dri/tls/i965_dri.so
        libGL: OpenDriver: trying /usr/lib64/dri/i965_dri.so
        ATTENTION: default value of option vblank_mode overridden by environment.
        ATTENTION: default value of option vblank_mode overridden by environment.
        libGL: Can't open configuration file /home/pont/.drirc: No such file or directory.
        libGL: Can't open configuration file /home/pont/.drirc: No such file or directory.
        OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Desktop
        Code:
        xrandr --listproviders
        Providers: number : 2
        Provider 0: id: 0x85 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 8 associated providers: 1 name:Intel
        Provider 1: id: 0x59 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 4 associated providers: 1 name:radeon
        Code:
        cat /etc/udev/rules.d/70-radeon.rules
        SUBSYSTEM=="drm", IMPORT{builtin}="pci-0000_01_00_0"
        
        lspci -nn|grep AMD
        01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Bonaire XT [Radeon HD 7790/8770] [1002:665c]
        01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:aac0]

        Without DRI3 all works fine.

        Comment


        • #34
          Originally posted by Pontostroy View Post
          how enable prime with dri3?

          Code:
          cat /var/log/Xorg.0.log|grep DRI3
          [    34.621] (II) intel(0): direct rendering: DRI2 DRI3 enabled
          Code:
          xrandr --setprovideroffloadsink 1 0
          LIBGL_DEBUG=verbose DRI_PRIME=1 glxinfo|grep "OpenGL renderer string"
          libGL: pci id for fd 4: 8086:0152, driver i965
          libGL: OpenDriver: trying /usr/lib64/dri/tls/i965_dri.so
          libGL: OpenDriver: trying /usr/lib64/dri/i965_dri.so
          ATTENTION: default value of option vblank_mode overridden by environment.
          ATTENTION: default value of option vblank_mode overridden by environment.
          libGL: Can't open configuration file /home/pont/.drirc: No such file or directory.
          libGL: Can't open configuration file /home/pont/.drirc: No such file or directory.
          OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Desktop
          Code:
          xrandr --listproviders
          Providers: number : 2
          Provider 0: id: 0x85 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 8 associated providers: 1 name:Intel
          Provider 1: id: 0x59 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 4 associated providers: 1 name:radeon
          Code:
          cat /etc/udev/rules.d/70-radeon.rules
          SUBSYSTEM=="drm", IMPORT{builtin}="pci-0000_01_00_0"
          
          lspci -nn|grep AMD
          01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Bonaire XT [Radeon HD 7790/8770] [1002:665c]
          01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:aac0]

          Without DRI3 all works fine.
          read http://cgit.freedesktop.org/mesa/mes...e7c9351380809e

          It should not be
          SUBSYSTEM=="drm", IMPORT{builtin}="pci-0000_01_00_0"

          but

          SUBSYSTEM=="drm", IMPORT{builtin}="path_id"

          Comment


          • #35
            Hmm, so is there anything special I have to do in order to take advantage of this with my 7660G + 7670M muxless laptop? Should it "just work"?

            At the very least, I imagine I need updated graphics stacks. Would oibaf's PPA on 14.04 suffice? I think someone mentioned that you needed an updated xserver, and that oibaf's PPA didn't provide such, but xorg-edgers did (although unless I'm looking in the wrong area, I don't see xorg-edgers providing an updated xserver either)?

            Comment


            • #36
              Originally posted by Espionage724 View Post
              Hmm, so is there anything special I have to do in order to take advantage of this with my 7660G + 7670M muxless laptop? Should it "just work"?

              At the very least, I imagine I need updated graphics stacks. Would oibaf's PPA on 14.04 suffice? I think someone mentioned that you needed an updated xserver, and that oibaf's PPA didn't provide such, but xorg-edgers did (although unless I'm looking in the wrong area, I don't see xorg-edgers providing an updated xserver either)?
              I don't know what flags is oibaf using. He needs to compile Mesa with DRI3 support enabled (moreover it needs to be very recent Mesa). You don't need updated xserver, but you need updated intel DDX with DRI3 support enabled.

              Comment


              • #37
                Originally posted by mannerov View Post
                I don't know what flags is oibaf using. He needs to compile Mesa with DRI3 support enabled (moreover it needs to be very recent Mesa). You don't need updated xserver, but you need updated intel DDX with DRI3 support enabled.
                With 2x AMD graphics, he surely doesn't need xf86-video-intel...

                Comment


                • #38
                  Originally posted by ChrisXY View Post
                  With 2x AMD graphics, he surely doesn't need xf86-video-intel...
                  Sure I missed that.

                  The AMD DDX doesn't support DRI3 yet.
                  It is possible to enable it by removing the 'GLAMOR_NO_DRI3' flag from the sources, but the reason it's not enabled is that there's no Present support.
                  Thus for single gpu it's better to disable because DRI2 is slightly better in this case.

                  Comment

                  Working...
                  X