microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
10.06k stars 302 forks source link

GPU acceleration stopped working after upgrading to version >1.2.5.0 #1093

Open Fighter19 opened 1 year ago

Fighter19 commented 1 year ago

Windows build number:

10.0.19045.3271

Your Distribution version:

Ubuntu 22.04

Your WSL versions:

WSL-Version: 1.3.10.0 Kernelversion: 5.15.90.2-3 WSLg-Version: 1.0.54 MSRDC-Version: 1.2.4240 Direct3D-Version: 1.608.2-61064218 DXCore-Version: 10.0.25880.1000-230602-1350.main Windows-Verison: 10.0.19045.3271

Verifiy using the latest release of WSL/WSLg:

Occurs with latest (1.3.14) as well.

Steps to reproduce:

Run

glxinfo -B

Observe llvmpipe being used and line

[ 3045.622575] misc dxg: dxgk: dxgkio_query_statistics: Ioctl failed: -22

being printed to dmesg.

WSL logs:

No response

WSL dumps:

No dump files are present.

Expected Behavior:

glxinfo should print following:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Microsoft Corporation (0xffffffff)
    Device: D3D12 (NVIDIA GeForce GTX 950) (0xffffffff)
    Version: 22.2.5
    Accelerated: yes
    Video memory: 10126MB
    Unified memory: no
    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 (NVIDIA GeForce GTX 950)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 22.2.5
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 22.2.5
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 22.2.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

Segmentation fault

(Segmentation fault at the end is actually a bug as well, but it only affects shutdown and is a crash in an nvidia so)

Actual Behavior:

Prints following instead:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0xffffffff)
    Device: llvmpipe (LLVM 15.0.2, 256 bits) (0xffffffff)
    Version: 22.2.5
    Accelerated: no
    Video memory: 7878MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 15.0.2, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 22.2.5
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 22.2.5
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.2.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
ghost commented 1 year ago

wslg has a different template that you'll need to fill out: https://github.com/microsoft/wslg/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml

Fighter19 commented 1 year ago

I've updated the issue to fit the other form.

koltenfluckiger commented 1 year ago

I too have this issue. The issue for me is msrdc.exe will crash repeatedly on startup. The only way to get it working again is to downgrade to v1.2.5.0. I even did a fresh install of Windows 11, issue still persist.