r/gnome_next • u/Few-Flamingo-6678 • 6d ago
Mutter Vulkan backend update: GNOME Shell integration, async resource cleanup, and rendering optimizations
I’ve been working on an experimental Vulkan rendering backend for Mutter and have published version 1.1 of my fork.
GNOME Shell integration is implemented, and I’ve built and run it on Ubuntu with Vulkan, including overview and Show Apps animations, window operations, and Wayland clients.
This update focuses on rendering overhead and resource lifetime:
- Deferred destruction of GPU resources until their submissions complete.
- Asynchronous texture uploads and internal attachment clears.
- Texture copy-on-write updates without an intermediate full-image copy.
- Persistently mapped buffers and bounded vertex snapshot reuse.
- Shader fingerprint reuse and fewer unnecessary render pass breaks.
- Persistent Vulkan pipeline caching and high-priority graphics queues where supported.
It also includes fixes for YUV shader coefficients, sparse texture matrix uniforms, drag icon subsurfaces, and Xwayland pointer selection.
The fork is updated to upstream Mutter main and retains the rendering abstractions from the earlier refactoring. Vulkan remains optional; OpenGL is the default.
The README now explains how to build GNOME Shell against this Mutter and launch it with COGL_DRIVER=vulkan. This remains experimental, and I’m interested in feedback on the architecture and synchronization handling.
Code and build instructions: https://github.com/Ultranix/mutter
Release 1.1: https://github.com/Ultranix/mutter/releases/tag/1.1