You are not logged in.

#1 2016-04-24 11:49:37

josephk
Member
Registered: 2011-01-09
Posts: 97
Website

[solved] enabling DRI3 for modesetting DDX

Hi,

I successfully replaced intel DDX driver with built-in modesetting DDX simply by removing xf86-video-intel.
Since it runs on DRI2, do you know how to enable DRI3?

org.gnome.Shell.desktop[596]: glamor: EGL version 1.4 (DRI2):
/usr/lib/gdm/gdm-x-session[2329]: (II) glamor: EGL version 1.4 (DRI2):
/usr/lib/gdm/gdm-x-session[2329]: (II) modeset(0): [DRI2] Setup complete
/usr/lib/gdm/gdm-x-session[2329]: (II) modeset(0): [DRI2]   DRI driver: i965
/usr/lib/gdm/gdm-x-session[2329]: (II) modeset(0): [DRI2]   VDPAU driver: i965
/usr/lib/gdm/gdm-x-session[2329]: (II) GLX: Initialized DRI2 GL provider for screen 0

Last edited by josephk (2016-04-24 16:29:08)

Offline

#2 2016-04-24 13:32:15

LeoFa
Member
From: Netherlands
Registered: 2014-10-14
Posts: 35

Re: [solved] enabling DRI3 for modesetting DDX

you could try adding a config file like this:
/etc/X11/xorg.conf.d/20-modesetting.conf

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "modesetting"
    Option      "AccelMethod"    "glamor"
    Option      "DRI"            "3"
    Option      "Backlight"      "intel_backlight"
EndSection

Offline

#3 2016-04-24 15:10:34

josephk
Member
Registered: 2011-01-09
Posts: 97
Website

Re: [solved] enabling DRI3 for modesetting DDX

nope, still got DRI2

apr 24 17:07:04 hobo /usr/lib/gdm/gdm-x-session[895]: (WW) modeset(0): Option "DRI" is not used

do "man modesetting" for available options

Offline

#4 2016-04-24 15:16:24

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,271
Website

Re: [solved] enabling DRI3 for modesetting DDX

According to the man page, DRI3 is enabled by default:

modesetting(4) wrote:

       Option "PageFlip" "boolean"
              Enable DRI3 page flipping.  The default is on.

However, when I tried that my Xorg log seemed to show that DRI2 was still in use.

With the Intel DDX driver, it can be enabled and shows up in the log:

empty@Arch ~ % grep DRI3 .local/share/xorg/Xorg.0.log
[    10.947] (II) intel(0): direct rendering: DRI2 DRI3 enabled

https://github.com/Head-on-a-Stick/conf … intel.conf

EDIT: Note that the Glamor acceleration method has been disabled upstream in the Intel DDX driver but is enabled (and used) by default with the modesetting driver.

Last edited by Head_on_a_Stick (2016-04-24 15:18:43)


Para todos todo, para nosotros nada

Offline

#5 2016-04-24 15:23:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,081

Re: [solved] enabling DRI3 for modesetting DDX

LIBGL_DEBUG=verbose glxinfo | grep libgl

Offline

#6 2016-04-24 15:38:39

josephk
Member
Registered: 2011-01-09
Posts: 97
Website

Re: [solved] enabling DRI3 for modesetting DDX

Scimmia wrote:
LIBGL_DEBUG=verbose glxinfo | grep libgl
libGL: pci id for fd 4: 8086:1616, driver i965
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/i965_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/i965_dri.so
libGL: Using DRI3 for screen 0

!!

Offline

#7 2016-04-24 15:42:29

LeoFa
Member
From: Netherlands
Registered: 2014-10-14
Posts: 35

Re: [solved] enabling DRI3 for modesetting DDX

post ~/.local/share/xorg/Xorg.0.log please

    Option      "DRI"            "3"

my bad that was from xf86-video-intel

I'm guessing here but glamor should enable DRI3 by default?
..maybe it does a fallback to DRI2 if it's not supported by the application (gdm)?

Edit:
just tested it modesetting defaults to DRI2
from my Xorg.0.log

[  3272.042] (II) GLX: Initialized DRI2 GL provider for screen 0

makes me wonder if it's even supported?

Last edited by LeoFa (2016-04-24 15:49:20)

Offline

#8 2016-04-24 15:58:29

LeoFa
Member
From: Netherlands
Registered: 2014-10-14
Posts: 35

Re: [solved] enabling DRI3 for modesetting DDX

https://www.freedesktop.org/wiki/Software/Glamor/

Here is teh content of the glamor.conf.
Section "Module"
Load "dri2"
Load "glamoregl"
EndSection

so maybe we'll try that /etc/X11/xorg.conf.d/glamor.conf but replace "dri2" with "dri3"? see what happens?

EDIT: nope sad
cat ~/.local/share/xorg/Xorg.0.log |grep DRI

[  4337.157] (II) glamor: EGL version 1.4 (DRI2):
[  4337.498] (II) modeset(0): [DRI2] Setup complete
[  4337.498] (II) modeset(0): [DRI2]   DRI driver: i965
[  4337.498] (II) modeset(0): [DRI2]   VDPAU driver: i965
[  4337.527] (II) GLX: Initialized DRI2 GL provider for screen 0

Last edited by LeoFa (2016-04-24 16:03:32)

Offline

#9 2016-04-24 16:06:32

josephk
Member
Registered: 2011-01-09
Posts: 97
Website

Re: [solved] enabling DRI3 for modesetting DDX

@LeoFa

Glamor accelmethod has been removed from intel DDX. DRI3 can be enabled for intel DDX with a xorg conf file.
Glamor and DRI3 are enabled by default in modesetting DDX, although it isn't advertised in xorg log, nor journald, but Scimmia's command does show it.

Since DRI3 and wayland break at the moment gstreamer-vaapi, maybe the old Xorg/DRI2/IntelDDX solution is the one I'll keep. Or I'll simply use VLC.

Offline

#10 2016-04-24 16:28:52

LeoFa
Member
From: Netherlands
Registered: 2014-10-14
Posts: 35

Re: [solved] enabling DRI3 for modesetting DDX

@josephk
yes missed some posts trying to reply and figuring it out..
thnx @Scimmia for showing DRI3 is indeed enabled, kinda weird \O_o? the Xorg logs don't show that though.

Offline

#11 2016-04-26 09:58:55

newbie1962
Member
From: italy
Registered: 2012-07-24
Posts: 137

Re: [solved] enabling DRI3 for modesetting DDX

LeoFa wrote:

you could try adding a config file like this:
/etc/X11/xorg.conf.d/20-modesetting.conf

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "modesetting"
    Option      "AccelMethod"    "glamor"
    Option      "DRI"            "3"
    Option      "Backlight"      "intel_backlight"
EndSection

this is not mentioned in wiki "glamor",I dri3 Use it With intel-nouveau

two ~ $ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.2.1
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.2.1
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
two ~ $ cat /var/log/Xorg.0.log |grep -i DRI3
[    18.070] (II) Loading sub module "dri3"
[    18.070] (II) LoadModule: "dri3"
[    18.071] (II) Module "dri3" already built-in
[    18.358] (II) intel(0): direct rendering: DRI2 DRI3 enabled
two ~ $ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"OpenGL renderer string: Gallium 0.4 on NVC1
two ~ $ DRI_PRIME=0 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 

two ~ $ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x90 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 5 associated providers: 0 name:Intel
Provider 1: id: 0x62 cap: 0x7, Source Output, Sink Output, Source Offload crtcs: 2 outputs: 1 associated providers: 0 name:nouveau
two ~ $ 

Last edited by newbie1962 (2016-04-26 10:00:19)


hp-envy dv7

Offline

Board footer

Powered by FluxBB