Ask ten Linux users where “the graphics driver” lives and you will get ten answers that are all partly right. The truth is that what we casually call the driver is a stack of five or six layers, each owned by a different project, agreeing on the same buffers and the same fences. In 2026 that stack has settled into a fairly stable shape, but its pieces still move fast enough that knowing which layer you are actually debugging saves hours. Here is the whole thing, from the kernel up to the portals that let a sandboxed app open a file dialog.
The kernel: DRM and KMS
Everything starts in the kernel with DRM, the Direct Rendering Manager, and its KMS (Kernel Mode Setting) half. KMS is what sets the display mode: the resolution, the refresh rate, and which connector (HDMI, DisplayPort) drives which framebuffer. DRM is the character device — /dev/dri/card0 and the render nodes like /dev/dri/renderD128 — that user space opens to talk to the GPU for everything else: allocating video memory, submitting command buffers and synchronising work between engines. The kernel-side drivers are deliberately thin: i915 and the newer xe for Intel, amdgpu for AMD (with radeon only kept for very old cards), nouveau — and now the Rust-based nova — for NVIDIA, plus virtio-gpu for virtual machines. They render nothing themselves; they move memory and schedule the ring buffers that user space fills. When the kernel driver and the user-space driver disagree about a version or a format, you get the classic symptom of a black screen or a fallback to software rendering.
Mesa: the open middle layer
Above DRM sits Mesa, the single most important project in Linux graphics and one of the most misunderstood. Mesa is a user-space implementation of OpenGL, OpenGL ES, Vulkan, OpenCL and VA-API, and it is where the actual translation from “draw this triangle” to GPU commands happens. It also owns the shader compilers — NIR as the shared intermediate representation, and per-vendor backends like ACO on AMD and NAK on NVIDIA — which is why a Mesa update can change how your games perform without any kernel change at all. Its drivers are named separately because they are genuinely different backends. Most of them share Gallium, Mesa’s internal abstraction layer that lets one compiled core serve many different GPUs.
| Mesa driver | Vendor | API |
|---|---|---|
radeonsi |
AMD | OpenGL / OpenGL ES |
radv |
AMD | Vulkan |
iris |
Intel | OpenGL / OpenGL ES |
anv |
Intel | Vulkan |
NVK |
NVIDIA | Vulkan |
Zink |
any | OpenGL on top of Vulkan |
The two names worth remembering are radv and anv: the modern AMD and Intel Vulkan drivers, both developed upstream and, on most distributions, every bit as fast as the vendor stacks. Zink is the clever one — it implements OpenGL by translating it to Vulkan, which is why NVIDIA’s open NVK driver can now serve OpenGL applications too.
NVIDIA’s proprietary stack
NVIDIA does not follow the Mesa path. Its proprietary driver is a single closed-source user-space blob that talks to a matching kernel module, and for years it was the only way to get full performance, CUDA or good ray-tracing on GeForce and Quadro hardware. In 2026 that is still largely true for the newest features, but the open alternatives have caught up more than most people realise: nouveau now works with NVIDIA’s own signed firmware for hardware acceleration, and NVK reached Vulkan 1.4. The practical rule has not changed — if you need ray-tracing or CUDA, you run the proprietary driver; if you value an open, in-kernel story, you watch the open stack closely. The two worlds also coexist more gracefully than they used to: distributions now ship both, and switching is a package choice rather than a reinstall.
The display server: X11 versus Wayland
Above all of that sits the display server, the layer that owns windows, input and the screen. X11 has been the standard since the 1980s: a network-transparent, extremely mature server where any client can read and inject events on any window — powerful, and a permanent security hole. Wayland is its replacement, and it inverts the model: instead of one giant server, every compositor is itself a Wayland server, and clients get exactly the buffers and inputs they are granted and nothing more.
| X11 | Wayland | |
|---|---|---|
| Model | One central server | The compositor is the server |
| Client isolation | None by default | Strict, per-client |
| Screen tearing | Common without tuning | Handled by design |
| Remote / network | Native | Via portals and tools |
| Legacy apps | Native | Through XWayland |
Wayland is now the default on GNOME, KDE Plasma, Fedora and Ubuntu, and the remaining friction is mostly legacy: apps that still assume the X11 model run through XWayland, a compatibility server that keeps them drawing even though no real X server is running.
Compositors: Mutter, KWin, wlroots and niri
On Wayland, the compositor is the display server, the window manager and the effects engine rolled into one. The heavyweight desktop compositors are Mutter (GNOME) and KWin (KDE Plasma), both mature enough to run games, screen-sharing and fractional scaling without drama. Beneath them sits wlroots, a library that implements the boring, correct parts of a Wayland compositor so that projects like Sway and Hyprland do not have to reinvent them. The newer trend is niri, a scrolling, tiling compositor written in Rust that arranges windows in an endless horizontal column — a different philosophy, built directly on the Wayland protocol.
Vulkan and OpenGL: the APIs applications speak
Applications almost never talk to the driver directly; they talk to an API, and on Linux that means OpenGL or Vulkan. OpenGL is the older, higher-level, state-based API that games, desktop effects and older toolkits still use. Vulkan is the modern, low-overhead, explicit API that hands the application far more control over memory and command submission — which is why Proton and today’s native Linux games lean on it. Both arrive through the same loader, libglvnd, which dispatches a call to whichever driver Mesa (or the vendor) has registered for your GPU. This is the layer where “which driver am I on?” actually gets answered, and it is also the layer a translation project sits on top of: DXVK turns Direct3D 9, 10 and 11 into Vulkan, and VKD3D does the same for Direct3D 12, which is how Windows games run natively on Wayland with no compatibility layer in sight.
Portals: how sandboxed apps reach your screen
The top of the stack is the least glamorous but the most important for modern apps: xdg-desktop-portal. Under Wayland, a sandboxed application — a Flatpak, a Snap, a Firefox content process — cannot simply grab your screen or read your files. Instead it asks a portal, which asks you, and forwards the result. Screen sharing, file pickers, screenshots and dark-mode settings all flow through portals, usually brokered by xdg-desktop-portal-gnome or xdg-desktop-portal-kde. Get the wrong portal implementation installed and your screen-share menu simply never appears; that is a stack problem, not a browser bug.
Reading the stack on your machine
You do not have to take any of this on faith. Two commands tell you almost everything about the layers below your apps. First, the kernel side:
# Which DRM drivers and GPUs are present
drm_info | head -n 40
dmesg | grep -i drm
# Connector status (connected / disconnected) per output
cat /sys/class/drm/*/status
Then the user-space side, which reveals the Mesa or vendor driver actually in use:
# OpenGL renderer and version (Mesa or vendor)
glxinfo | grep -E "OpenGL renderer|OpenGL version"
# Vulkan devices, driver and API version
vulkaninfo --summary
If glxinfo reports Mesa and a driver name, you are on the open stack; if it reports NVIDIA, you are on the proprietary one. vulkaninfo --summary does the same for Vulkan and is the fastest way to confirm which radv, anv or NVK build is loaded.
What changes for you
Knowing the stack pays off the moment something breaks. A black screen after a kernel update is a DRM/KMS problem; a game that refuses to start with an OpenGL error is a Mesa question; a screen-share dialog that never shows is usually a missing portal backend. The layering also tells you where to look for speed: Mesa drivers are improving weekly, so a distribution upgrade often buys you frames for free, while a proprietary-driver update is a deliberate, occasional choice. In 2026 the open stack is the default on almost every desktop, and the proprietary driver is the exception you opt into — which is exactly the direction the whole ecosystem has been pointing for a decade.
Sources
- The Linux kernel — DRM subsystem documentation: the authoritative reference for DRM, KMS and the GPU drivers that ship in the kernel.
- Mesa — official documentation: how Gallium,
radv,anvandNVKare structured and which APIs each implements. - Arch Wiki — Wayland: a practical map of compositors, XWayland and the Wayland protocol.
- xdg-desktop-portal — GitHub: what portals are, which backends exist and how sandboxed apps reach the desktop.
- NVIDIA — Linux driver README: the vendor view of the proprietary stack and its kernel module.





Leave a Reply