Replies: 4 comments 1 reply
-
Here's https://gist.github.com/shayne/729162d77e6a8469564f88566b953372 |
Beta Was this translation helpful? Give feedback.
-
Looks like adding support for |
Beta Was this translation helpful? Give feedback.
-
Has anyone successfully enabled opengl rendering in nixos-wsl now? I have tried many times and it only shows that it is the software rendering of llvmpipe. I am not sure what the problem is. Simisage
▄▀▀▄
▄▀▀▀▀▀▄
▀▀▀▀▀▀▀▄
▄▄▀▀▀▀▀▀▀▀▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▄▀▀▄▄
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀
▀ ▀▀▀▀▀▀▀▀▀▀▀▄▀▀▀▀
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀
▀▀ ▀▀▀▀▀
▀▀
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
~
❯ wsl.exe --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.19045.3570
~
❯ glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Mesa (0xffffffff)
Device: llvmpipe (LLVM 15.0.7, 256 bits) (0xffffffff)
Version: 23.1.7
Accelerated: no
Video memory: 15911MB
Unified memory: yes
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
Memory info (GL_ATI_meminfo):
VBO free memory - total: 0 MB, largest block: 0 MB
VBO free aux. memory - total: 14040 MB, largest block: 14040 MB
Texture free memory - total: 31 MB, largest block: 31 MB
Texture free aux. memory - total: 14040 MB, largest block: 14040 MB
Renderbuffer free memory - total: 31 MB, largest block: 31 MB
Renderbuffer free aux. memory - total: 14040 MB, largest block: 14040 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 980782 MB
Total available memory: 996694 MB
Currently available dedicated video memory: 31 MB
OpenGL vendor string: Mesa
OpenGL renderer string: llvmpipe (LLVM 15.0.7, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 23.1.7
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 23.1.7
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 23.1.7
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
~
❯ ls /dev/ | rg dxg
dxg
~
❯
|
Beta Was this translation helpful? Give feedback.
-
By the way, it is now possible to run kde plasma x11 through xwayland ❯ nix-shell -p xwayland
[nix-shell:~]$ cat ./startkde.sh
#!/usr/bin/env sh
echo 1
Xwayland :1 &
echo 2
xw_pid=$!
echo 3
WAYLAND_DISPLAY=no DISPLAY=:1 dbus-launch startplasma-x11
echo 4
kill $xw_pid
echo 5
[nix-shell:~]$ ./startkde.sh
1
2
3
|
Beta Was this translation helpful? Give feedback.
-
I have seen some references that seem to imply that OpenGL is working properly. I'm afraid it's using llvmpipe instead of the accelerated support in WSLg. My reason to believe that is that Mesa doesn't seem to be built with the
d3d12
gallium driver enabled. Can anyone confirm this point? The output ofglxinfo
should suffice.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions