Environment: QEMU + KVM virtual machine with QXL virtual graphics card, directly connected to NVIDIA. NVIDIA drivers installed in the virtual machine.
Environment variables set:
export __GLX_VENDOR_LIBRARY_NAME='nvidia'
export NVIDIA_DRIVER_CAPABILITIES='all'
export __NV_PRIME_RENDER_OFFLOAD='1'
glxifo can output the OpenGL renderer string:
NVIDIA GeForce RTX 4080 SUPER/PCIe/SSE2.
glxgears -info can also use NVIDIA rendering.
Chrome has ignore-gpu-blocklist, enable-gpu-rasterization, and enable-zero-copy.
chrome://gpu displays the following:
In Graphics Feature Status, hardware acceleration is enabled, but GL_RENDERER does not have NVIDIA, only llvmpipe's CPU rendering.
Why is this?
When running chrome, there is no chrome process in nvidia-smi.
How to make Chrome use nvidia rendering?
When enable-vulkan is enable, nvidia-smi can find the chrome process, but GL_RENDERER in chrome:://gpu does not change, and it seems that nvidia is not used from the rendering effect.
Google Chrome, installed .deb, version is 133.0.6943.126 (official version)
