ChanServ changed the topic of #dri-devel to: <ajax> nothing involved with X should ever be unable to find a bar
hexa- has joined #dri-devel
<YuGiOhJCJ>
hello, I am on a Dell Latitude 3140 and lspci told me that the graphics card is an Intel 46d0: https://dgpu-docs.intel.com/devices/hardware-table.html can you tell me which mesa DRI module is supposed to be loaded for this GPU please?
<Kayden>
looks like that's a Gen12 Alderlake system that should use iris_dri.so
<YuGiOhJCJ>
thanks but if I try to force in xorg.conf.d: Driver "iris", it is not found but it seems that this is not a driver but an option like here: https://wiki.archlinux.org/title/Intel_graphics but when I set: Driver "intel" then: Option "DRI" "iris", I get an error "failed to submit rendering commands" then "could not open default font"...
shoragan has quit [Read error: Network is unreachable]
<Kayden>
The xf86-video-intel 2D driver doesn't support that GPU AFAIK.
<Kayden>
You'll want to be using the "modesetting" xorg driver
<Kayden>
which is included with the X server
<Kayden>
modesetting uses glamor (OpenGL) for acceleration, which should load libEGL.so and use the EGL_MESA_query_driver extension to ask the EGL implementation which DRI driver to load. if your libEGL.so is pointing at Mesa, it should respond with iris and load it automatically
pH5 has quit [Read error: No route to host]
pH5 has joined #dri-devel
shoragan has joined #dri-devel
<Kayden>
that should also work out of the box without any xorg.conf...
<YuGiOhJCJ>
when I try with: Driver "modesetting", I get the following error in the Xorg.0.log file: "[ 2622.305] (EE) modeset(0): [DRI2] No driver mapping found for PCI device 0x8086 / 0x46d0"
<Kayden>
that's odd. does eglinfo | grep driver show "EGL driver name: iris" and "EGL_MESA_query_driver"?
<YuGiOhJCJ>
"eglinfo" is not available on my system
<Kayden>
ah, it's from the mesa-utils package if you're on arch
<Kayden>
(just guessing since you cited the arch wiki)
<YuGiOhJCJ>
I am on Slackware
<Kayden>
ah
<YuGiOhJCJ>
but yeah ok it is supposed to be part of Mesa
<Kayden>
it's built from the mesa demos repo actually
<YuGiOhJCJ>
ok
<YuGiOhJCJ>
I'll try to get it
<Kayden>
I guess another question would be, do you have libEGL.so from glvnd and libEGL_mesa.so from Mesa?
<YuGiOhJCJ>
I only took glxinfo and glxgears last time I built the package from source, that's why
<Kayden>
I don't think it should hit that driver map path unless egl is not working.
<Kayden>
(we never added anything iris or crocus to the xserver...it just asks libEGL)
<YuGiOhJCJ>
/usr/lib64/libEGL.so and /usr/lib64/libEGL_mesa.so are present indeed, part of mesa-23.0.3 package
<Kayden>
hmm :(
Kayden has quit [Quit: rebooting]
Kayden has joined #dri-devel
<YuGiOhJCJ>
ok I ran "eglinfo" and I see a lot of lines
<YuGiOhJCJ>
wait I have to grep it
<YuGiOhJCJ>
wow I see some permission denied, should I run it as root?
<YuGiOhJCJ>
"libEGL warning: failed to open /dev/dri/card0: Permission denied"
<Kayden>
what are the permissions on /dev/dri/* ?
<YuGiOhJCJ>
maybe I should be member of the group video
<Kayden>
on arch you need to be in the video and render groups
<Kayden>
not sure about slack
<Kayden>
but yeah, probably just missing a group
<YuGiOhJCJ>
"crw-rw---- 1 root video 226, 0 May 18 2025 /dev/dri/card0"
<Kayden>
renderD128 would also be used by a lot of things
<YuGiOhJCJ>
I'll add myself to the "video" group
<YuGiOhJCJ>
then try again
<Kayden>
(card0 is usually used by things wanting to own the monitor outputs, renderD128 by programs that want to render things)
valpackett has quit [Ping timeout: 480 seconds]
MrCooper_ has joined #dri-devel
<YuGiOhJCJ>
wait, in fact the permission problem is only seen when I do "eglinfo | grep driver" from ssh, when I do it on the host directly I have no output at all
<YuGiOhJCJ>
oops
<YuGiOhJCJ>
no I did not type it correctly on the host
<YuGiOhJCJ>
that's why
<YuGiOhJCJ>
ok I see "iris"
<YuGiOhJCJ>
as expected
MrCooper has quit [Ping timeout: 480 seconds]
<YuGiOhJCJ>
in fact, if I don't specify anything in xorg.conf.d, it tries to load the old deprecated amber driver: "[ 4637.905] (EE) AIGLX error: dlopen of /usr/lib64/xorg/modules/dri/i965_dri.so failed (/usr/lib64/xorg/modules/dri/i965_dri.so: cannot open shared object file: No such file or directory)"
<YuGiOhJCJ>
that's why I prefer to add a conf file to xorg.conf.d
<Kayden>
odd... it shouldn't
<YuGiOhJCJ>
I guess it's because my xorg is a bit old
<Kayden>
I wrote the handling for all of this in 2019 though :/