Confused about WSLg + Xvfb; can Xvfb really talk to the GPU? #1337
Unanswered
caffeine-storm
asked this question in
Q&A
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
Hopefully I'm just confused about the layering of things or something but I'm seeing some unexpected behaviour.
I expected
Xvfb
to use a software renderer (likellvmpipe
) but it seems to be using the d3d12 driver?For me, since
Xvfb
is not using the software renderer, some automated testing in my OpenGL project isn't consistent between WSL and 'real' Ubuntu instances. I can work around it for now with$LIBGL_ALWAYS_SOFTWARE
but I want to better understand why this happens. Is it a bug in WSLg?My methodology:
When I run
glxinfo -B
in a fresh WSL terminal I see, as expected, that the D3D12 'device' is used:When I run
LIBGL_ALWAYS_SOFTWARE glxinfo -B
I see, as expected, that the llvmpipe 'device' is used:When I run
xvfb-run glxinfo -B
I seewhich, to me, is weird; I wouldn't expect the Xvfb server to expose what looks like "real hardware" to its X clients.
Beta Was this translation helpful? Give feedback.
All reactions