mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-19 14:45:29 +00:00
On Linux and BSD, kitty now falls back to rendering on the CPU with the Mesa lavapipe (Vulkan) or llvmpipe (OpenGL) software renderers when no usable GPU is found, such as in virtual machines or with broken GPU drivers. This is the new software value of the gpu_driver option, last in the default list. Drivers are now told which kind of renderer they may use. The software candidates use only software renderers: Vulkan selects CPU devices and OpenGL sets LIBGL_ALWAYS_SOFTWARE and __GLX_VENDOR_LIBRARY_NAME while the renderer is chosen, restoring them afterwards so they are not passed on to child programs. The other candidates reject software renderers, unless they are last, so that a working GPU, even one usable only by a later driver, is always preferred to the CPU. Previously, on systems with a GPU usable only with OpenGL, kitty would use lavapipe. Drivers report whether they render in software in their capabilities. Failing to initialize the GPU driver for the first window is no longer fatal: the window is recreated with the next driver, as is already done for failures creating surfaces. OpenGL can only detect that it is using llvmpipe once a context is current. When software rendering is used, a message saying so is shown at the top of every OS window for five seconds after it is first rendered. |
||
|---|---|---|
| .. | ||
| metal | ||
| opengl | ||
| vulkan | ||
| api.h | ||