Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpu not used by mesa driver #1

Closed
2 of 4 tasks
LuanVSO opened this issue Nov 22, 2022 · 9 comments
Closed
2 of 4 tasks

gpu not used by mesa driver #1

LuanVSO opened this issue Nov 22, 2022 · 9 comments
Labels

Comments

@LuanVSO
Copy link

LuanVSO commented Nov 22, 2022

Requirements

  • Yes
  • No

WSL Version

  • WSL 2
  • WSL 1

Version

10.0.22621.819

Kernel Version

5.15.74.2

Repro Steps

WSL Version: 1.0.0.0
kernel Version: 5.15.74.2
WSLg Version: 1.0.47
MSRDC Version: 1.2.3575
Direct3D Version: 1.606.4
DXCore Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows Version: 10.0.22621.819


pacman -S mesa mesa-utils
glxgears

check on windows taskmanager to see if the gpu is being used.

Expected Behavior

the gpu is used to render glxgears

Actual Behavior

glxgears is rendered using cpu


additional info:

❯ glxinfo | grep -i opengl
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 14.0.6, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 22.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: 4.5 (Compatibility Profile) Mesa 22.2.3
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.2.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
❯ lspci
94ed:00:00.0 3D controller: Microsoft Corporation Basic Render Driver

@sileshn
Copy link
Owner

sileshn commented Nov 22, 2022

I am not able to reproduce this.

Screenshot 2022-11-23 035423

@LuanVSO
Copy link
Author

LuanVSO commented Nov 22, 2022

forgot to mention that i am on intel integrated graphics, the intel gpu info only shows up on ubuntu:
image

@sileshn
Copy link
Owner

sileshn commented Nov 23, 2022

Irrespective of the GPU being amd/intel/nvidia, it should work as long as you have the correct drivers installed

@LuanVSO
Copy link
Author

LuanVSO commented Nov 25, 2022

i re-installed the distro and only installed the mesa packages, it still doesn't work, do you have any pointers/tips on how to debug this?
image

@Vinfall
Copy link

Vinfall commented Nov 28, 2022

forgot to mention that i am on intel integrated graphics, the intel gpu info only shows up on ubuntu:

This is important. Intel graphic cards (I use Iris Xe) only work in Ubuntu (not even in Debian/Devuan) in my experience with 15+ WSL distros, i.e. it's not limited to Manjaro but more of a upstream issue.

It used to work but a recent kernel/WSL package update breaks it again. It's reported in microsoft/WSL and I suggest you taking a look at Ubuntu's hack to make it work.

@sileshn
Copy link
Owner

sileshn commented Nov 28, 2022

Link me to it

@Vinfall
Copy link

Vinfall commented Nov 29, 2022

Sorry, I just recall it and can't remember the source... But I can point you some links that may help:

  1. WDDM GPU Paravirtualization support for WSL2: general guide
  2. Configure the host to bind vfio-pci to Intel Iris Xe: more detailed but maybe exclusive to Linux desktop or Iris Xe, no idea whether it applies to WSL or UHD. It involves compiling the kernel if earlier than Ubuntu 22.10

Basically it's either vGPU driver not installed/working or kernel w/o the driver adapter enabled.

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the stale label Dec 6, 2022
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants