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

glxgears does not show 3d gears, shows black void instead [Intel GPU]. #1096

Open qiyuef opened 1 year ago

qiyuef commented 1 year ago

Windows build number:

22621.1992

Your Distribution version:

Release: 22.04

Your WSL versions:

C:\Users\HW>wsl --version
WSL 版本: 1.2.5.0
内核版本: 5.15.90.1
WSLg 版本: 1.0.51
MSRDC 版本: 1.2.3770
Direct3D 版本: 1.608.2-61064218
DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows 版本: 10.0.22621.1992

Steps to reproduce:

  1. run glxgears
  2. window opens
  3. blank (xeyes, etc works.)

WSL logs:

pulseaudio.log stderr.log weston.log

WSL dumps:

No crash

Expected behavior:

glxgears shows three gears rotating

Actual behavior:

black window client area

qiyuef commented 1 year ago

glxinfo -B output from wsl command prompt:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Microsoft Corporation (0xffffffff)
    Device: D3D12 (Intel(R) Iris(R) Xe Graphics) (0xffffffff)
    Version: 23.0.4
    Accelerated: yes
    Video memory: 8211MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.1
    Max compat profile version: 4.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (Intel(R) Iris(R) Xe Graphics)
OpenGL core profile version string: 4.1 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL core profile shading language version string: 4.10
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.1 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL shading language version string: 4.10
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

Host graphics: Intel Iris Xe Graphics (integrated 11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz 3.11 GHz) driver version: 30.0.101.1003

hideyukn88 commented 11 months ago

@qiyuef, thanks for reporting the issue, please refer my comments on the same issue, https://github.com/microsoft/wslg/issues/654#issuecomment-1074555422, thanks!

TiLopes commented 1 month ago

@hideyukn88 Those comments don't do anything to solve the problem. There certainly is an issue on wslg or intel drivers, since glxgears/glxheads etc. run "well" when the window is small but as soon as I maximize / resize the GPU 3D utilization drops to 0%.