Virglrenderer 0.10.1 broke Firefox WebGL rendering in VM
The OS vendor updated virglrenderer from 0.9.1 to 0.10.1. Previously, Firefox inside the VM ran WebGL samples accelerated. This is no longer the case with virglrenderer 0.10.1.
I'm running NVIDIA proprietary driver 510.85.02 on the host OS.
Running Firefox:
if [[ $XDG_SESSION_TYPE == wayland ]]; then
export EGL_PLATFORM=wayland
export MOZ_ENABLE_WAYLAND=1
else
export MOZ_DISABLE_WAYLAND=1
export MOZ_X11_EGL=1
fi
export MOZ_ACCELERATED=1
export MOZ_USE_XINPUT2=1
export MOZ_WEBRENDER=1
firefox
Firefox 104.0.2 inside the Linux VM reports the following:
[GFX1-]: Failed to create EGLContext!: 0x3009
[GFX1-]: Failed to create EGLContext!: 0x3005
Fallback WR to SW-WR
I restored libvirglrenderer libs back to 0.9.1 on the host OS. Firefox in the Linux VM runs WebGL samples accelerated.
Edited by Mario Roy