Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Intel modesetting DDX, no DRI3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cv01302
n00b
n00b


Joined: 08 Jan 2005
Posts: 19

PostPosted: Fri Nov 03, 2017 7:06 pm    Post subject: Intel modesetting DDX, no DRI3 Reply with quote

Hello fellow Gentooers!
I am trying to force DRI3 with my gen 7.5 Intel Haswell integrated graphics chipset (iGPU) using modesetting drivers, but unfortunately it doesn't get activated and reverts by default to DRI2.


glamor and dri3 use flags are enabled:
Code:
1) # cat /etc/portage/make.conf | grep USE
# Additional USE flags in addition to those specified by the current profile.
USE="${CPU_FLAGS_X86} alsa lm_sensors systemd -consolekit x264 x265 scanner snmp gimp smp fax infinality bmp mtp nano-syntax pulseaudio vaapi bmp png ntfs hfs hfsplus fat networkmanager ovmf qemu hvm vulkan X tk vaapi glamor d3d9 openmax osmesa mpv dri3 vdpau"



Using following packages (tried either stable and/or latest unstable ~amd64):
Code:
2)
[ebuild   R    ] x11-base/xorg-server-1.19.5
[ebuild   R   ~] sys-devel/llvm-5.0.0
[ebuild   R   ~] media-libs/mesa-17.3.0_rc2




Code:
3) # cat /etc/portage/make.conf | grep VIDEO_CARDS
VIDEO_CARDS="intel i965"



Using glamor as AccelMethod - I have also tried "uxa" too, no change.
Code:
4) # cat /etc/X11/xorg.conf.d/20modesetting.conf
Section "Device"
    Identifier  "Intel Graphics"
    Driver   "modesetting"
    Option   "AccelMethod"    "glamor"
    Option   "DRI"            "3"
    Option   "TearFree"   "true"
EndSection



Same output no matter what I try, always DRI2. I thought DRI3 was enabled by default when using modesetting:
Code:
5) # journalctl -xb | grep DRI
Nov 03 20:16:36 gentoo /usr/libexec/gdm-x-session[608]: (II) glamor: EGL version 1.4 (DRI2):
Nov 03 20:16:36 gentoo /usr/libexec/gdm-x-session[608]: (WW) modeset(0): Option "DRI" is not used
Nov 03 20:16:36 gentoo /usr/libexec/gdm-x-session[608]: (II) modeset(0): [DRI2] Setup complete
Nov 03 20:16:36 gentoo /usr/libexec/gdm-x-session[608]: (II) modeset(0): [DRI2]   DRI driver: i965
Nov 03 20:16:36 gentoo /usr/libexec/gdm-x-session[608]: (II) modeset(0): [DRI2]   VDPAU driver: i965
Nov 03 20:16:36 gentoo /usr/libexec/gdm-x-session[608]: (II) GLX: Initialized DRI2 GL provider for screen 0
Nov 03 20:16:45 gentoo /usr/libexec/gdm-x-session[1693]: (II) glamor: EGL version 1.4 (DRI2):
Nov 03 20:16:45 gentoo /usr/libexec/gdm-x-session[1693]: (WW) modeset(0): Option "DRI" is not used
Nov 03 20:16:45 gentoo /usr/libexec/gdm-x-session[1693]: (II) modeset(0): [DRI2] Setup complete
Nov 03 20:16:45 gentoo /usr/libexec/gdm-x-session[1693]: (II) modeset(0): [DRI2]   DRI driver: i965
Nov 03 20:16:45 gentoo /usr/libexec/gdm-x-session[1693]: (II) modeset(0): [DRI2]   VDPAU driver: i965
Nov 03 20:16:45 gentoo /usr/libexec/gdm-x-session[1693]: (II) GLX: Initialized DRI2 GL provider for screen 0



However, two days ago when I used intel drivers instead of modesetting, DRI3 was (forced) enabled:
Code:
6) # journalctl | grep DRI
Nov 01 14:51:12 gentoo /usr/libexec/gdm-x-session[615]: (II) intel(0): direct rendering: DRI2 DRI3 enabled
Nov 01 14:51:25 gentoo /usr/libexec/gdm-x-session[1674]: (II) intel(0): direct rendering: DRI2 DRI3 enabled
Nov 01 14:53:12 gentoo /usr/libexec/gdm-x-session[615]: (II) intel(0): direct rendering: DRI2 DRI3 enabled
Nov 01 14:53:22 gentoo /usr/libexec/gdm-x-session[1667]: (II) intel(0): direct rendering: DRI2 DRI3 enabled



Any insights?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5592

PostPosted: Fri Nov 03, 2017 9:50 pm    Post subject: Reply with quote

modesetting always uses DRI3 so it doesn't print redundant lines to the log. Is there a performance problem you're having?
Back to top
View user's profile Send private message
cv01302
n00b
n00b


Joined: 08 Jan 2005
Posts: 19

PostPosted: Fri Nov 03, 2017 11:27 pm    Post subject: Reply with quote

Not really, although performance is about 10-15% faster with Intel drivers, judging by glxgears in vblank_mode=0 , but in real-life applications there are no differences.
However, I don't want to revert to Intel drivers as they are slowly deprecating whereas modesetting is more maintained and future-proof.

I have been trying to hotplug my dGPU (radeon) in order to use it as my host's main gpu as well, as I am currently successfully passing it through KVM for exclusive use in my windows VM (thus force using the iGPU for my host), but I am not succeeding in hot-plugging the radeon, and one of the reasons might be the DRI3, as I read in some guides - both cards must have DRI3 enabled in order to work.

Anyway, if indeed DRI3 is enabled by default when using modesetting, then there is a redundant line at the gentoo intel wiki where it states <<"Option "DRI" "3" >> when you force modesetting - it should be omitted.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Sat Nov 04, 2017 8:38 am    Post subject: Reply with quote

cv01302 wrote:
Anyway, if indeed DRI3 is enabled by default when using modesetting, then there is a redundant line at the gentoo intel wiki where it states <<"Option "DRI" "3" >> when you force modesetting - it should be omitted.

I've also been confused by that wiki section. Presently I have that line commented out but not certain if the wiki article needs to be adjusted.:
/etc/X11/xorg.conf.d/20-modesetting.conf:
# https://wiki.gentoo.org/wiki/Intel#Modesetting_DDX

Section "Device"
        Identifier  "Intel Graphics"
        Driver      "modesetting"
        Option      "AccelMethod"    "glamor"
#       Option      "DRI"            "3"
Back to top
View user's profile Send private message
grumblebear
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2008
Posts: 134

PostPosted: Sat Nov 04, 2017 10:35 am    Post subject: Reply with quote

The DRI option is not mentioned in the modesetting man page. So I think it is useless. Also, "AccelMethod" "glamor" is the default and therefore redundant.
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2539
Location: Near Toronto

PostPosted: Sat Nov 04, 2017 11:45 am    Post subject: Reply with quote

Quote:
Also, "AccelMethod" "glamor" is the default and therefore redundant.


I thought SNA was default :?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
grumblebear
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2008
Posts: 134

PostPosted: Sat Nov 04, 2017 11:59 am    Post subject: Reply with quote

Quote:
I thought SNA was default

Yes, for the intel driver. This is about the modesetting driver.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum