You are not logged in.

#1 2021-10-13 06:29:21

TrT
Member
Registered: 2021-10-13
Posts: 2

[SOLVED] mesa can't identify intel GPU on WSL2

Hi,
    I'm using ArchLinux under WSL2. But it seems that OpenGL only use llvmpipe for rendering, instead of DX12. I followed the operation stated in https://wiki.archlinux.org/title/Intel_ … stallation but everything seems ok except that /etc/modprobe.d is empty. I've also tried to use Ubuntu under WSL2 and the renderer is proper. So I guess this problem may be correlated to arch. I list my basic information below for diagnosis.
    $ cat /proc/cmdline
    $ initrd=\initrd.img panic=-1 nr_cpus=8 swiotlb=force pty.legacy_count=0
     
    $ lspic
    $ a6e5:00:00.0 3D controller: Microsoft Corporation Device 008e


    $ glxinfo | grep OpenGL
    $ OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 12.0.1, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 21.2.3
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 21.2.3
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

Last edited by TrT (2021-10-13 08:35:38)

Offline

#2 2021-10-13 06:40:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [SOLVED] mesa can't identify intel GPU on WSL2

You will probably need to rebuild mesa with the d3d12 gallium driver. Note that whatever WSL setup of Arch  you're using isn't "normal" Arch and provided by a third party and you might get better tailored help by asking wherever you got your WSL image.

Last edited by V1del (2021-10-13 07:04:05)

Offline

#3 2021-10-13 07:32:09

TrT
Member
Registered: 2021-10-13
Posts: 2

Re: [SOLVED] mesa can't identify intel GPU on WSL2

Re-install mesa with d3d12 option solves the problem. Thanks!

Offline

#4 2021-10-13 08:23:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [SOLVED] mesa can't identify intel GPU on WSL2

great, please mark as [SOLVED] by editing the title in your first post (... and while you're there maybe adjust it to more accurately reflect that you are trying this from WSL)

Offline

Board footer

Powered by FluxBB