Page 4 of 4 FirstFirst ... 234
Results 31 to 38 of 38

Thread: GLX DRI3 GPU Offloading Lands In Mesa

  1. #31
    Join Date
    Dec 2012
    Posts
    158

    Default

    Quote 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.

  2. #32
    Join Date
    Jul 2013
    Posts
    336

    Default

    Quote 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?

  3. #33
    Join Date
    Feb 2011
    Location
    Ukraine
    Posts
    135

    Default

    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.

  4. #34
    Join Date
    Dec 2012
    Posts
    158

    Default

    Quote 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"

  5. #35
    Join Date
    Sep 2013
    Posts
    195

    Default

    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)?

  6. #36
    Join Date
    Dec 2012
    Posts
    158

    Default

    Quote 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.

  7. #37
    Join Date
    Jun 2010
    Location
    ฿ 16LDJ6Hrd1oN3nCoFL7BypHSEYL84ca1JR
    Posts
    1,052

    Default

    Quote 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...

  8. #38
    Join Date
    Dec 2012
    Posts
    158

    Default

    Quote 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •