microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.48k stars 822 forks source link

Intel arc igpu not working properly. (Ultra 7 155h). OpenGL rendering not working. #11208

Open jaruizra opened 8 months ago

jaruizra commented 8 months ago

Windows Version

Microsoft Windows [Versión 10.0.22631.3155]

WSL Version

2.0.14.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.133.1

Distro Version

22.04

Other Software

glxinfo -B: Extended renderer info (GLX_MESA_query_renderer): Vendor: Microsoft Corporation (0xffffffff) Device: D3D12 (Intel(R) Arc(TM) Graphics) (0xffffffff) Version: 23.2.1 Accelerated: yes Video memory: 16305MB Unified memory: yes Preferred profile: core (0x1) Max core profile version: 4.2 Max compat profile version: 4.2 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.1 OpenGL vendor string: Microsoft Corporation OpenGL renderer string: D3D12 (Intel(R) Arc(TM) Graphics) OpenGL core profile version string: 4.2 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 OpenGL core profile shading language version string: 4.20 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile

OpenGL version string: 4.2 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 OpenGL shading language version string: 4.20 OpenGL context flags: (none) OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 23.2.1-1ubuntu3.1~22.04.2 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

glxinfo | grep -i "OpenGL renderer" OpenGL renderer string: D3D12 (Intel(R) Arc(TM) Graphics)

Repro Steps

Expected Behavior

Actual Behavior

glxgears outputs a black screen. It seems that applications that run on OpenGL rendering doesnt seem to work fine.

Diagnostic Logs

rura@asusg16:~$ journalctl -r Feb 24 22:58:27 asusg16 kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2 Feb 24 22:58:27 asusg16 kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 Feb 24 22:58:27 asusg16 kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 Feb 24 22:58:27 asusg16 kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 Feb 24 22:58:27 asusg16 kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2 Feb 24 22:58:27 asusg16 kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 Feb 24 22:58:27 asusg16 kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 Feb 24 22:58:27 asusg16 kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22 Feb 24 22:58:27 asusg16 kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22

RanFR commented 7 months ago

I also encountered the same problem. glxinfo shows that the accelerated is yes, but when I useglxgears, it outputs a black screen. If I use software rendering like export LIBGL_ALWAYS_SOFTWARE=1, glxgears will work well but this would be meaningless.

YiHui-Liu commented 3 months ago

the same issue. and mesa need to be updated from DZN to MTL.

jaruizra commented 2 months ago

Have you manage to solve it?

I haven't check if the issue persist since then.

longday commented 2 months ago

Have you manage to solve it?

I haven't check if the issue persist since then.

still not working

gpettey-ercot commented 6 days ago

This is still an issue. Apps that use OpenGL must be launched with LIBGL_ALWAYS_SOFTWARE=1 in their environment to show anything other than a useless black rectangle in their window. I have tested this on both Ubuntu 22.04 and 24.04 distributions.