PHASE 12: Vulkan VideoRenderer - Foundation with Wayland/X11/Headless Support#48
Merged
infinityabundance merged 8 commits intomainfrom Feb 13, 2026
Merged
Conversation
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
…eclarations Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Vulkan rendering backend for VideoRenderer fallback
PHASE 12: Vulkan VideoRenderer - Foundation with Wayland/X11/Headless Support
Feb 13, 2026
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Vulkan rendering backend foundation with automatic display server detection (Wayland → X11 → Headless). Maintains API compatibility with OpenGL renderer. Backend stubs ready for complete implementation.
Details
What changed?
Core Renderer (
vulkan_renderer.{h,c})Backend Infrastructure
vulkan_wayland.{h,c}- Primary backend stub (VK_KHR_wayland_surface)vulkan_x11.{h,c}- Fallback backend stub (VK_KHR_xlib_surface)vulkan_headless.{h,c}- Testing backend stub (offscreen)Integration Layer
renderer.{h,c}withRENDERER_VULKANsupportFRAME_FORMAT_NV12,DEFAULT_RENDER_WIDTH/HEIGHTHAVE_VULKAN_RENDERER)Build System
ENABLE_RENDERER_VULKANwith graceful fallbackTesting & Documentation
Rationale
Linux-native: Wayland-first approach aligns with modern Linux desktop, X11 fallback ensures compatibility
Low latency: Vulkan's explicit API enables future optimizations (async compute, descriptor pooling)
Simplicity: Automatic backend detection - zero configuration for users
Foundation enables incremental implementation:
Testing
make)Validation:
Notes
Original prompt
PHASE 12: VideoRenderer - Vulkan Fallback with Wayland/X11/Headless Support
🎯 Objective
Implement a Vulkan rendering backend as a fallback for the primary OpenGL VideoRenderer, with strict prioritization:
This ensures optimal performance, modern desktop integration, backward compatibility, and flexible deployment across all Linux scenarios.
📋 Architecture Overview
🔨 Implementation Plan
1. Core Vulkan Renderer Structure
File:
clients/kde-plasma-client/src/renderer/vulkan_renderer.h/cpp2. Wayland Backend (Primary)
File:
clients/kde-plasma-client/src/renderer/vulkan_wayland.h/cppFeatures:
VK_KHR_wayland_surface)Key Implementation:
Vulkan Extensions Required:
VK_KHR_wayland_surfaceVK_EXT_external_memory_dma_bufVK_EXT_external_memory3. X11 Backend (Fallback)
File:
clients/kde-plasma-client/src/renderer/vulkan_x11.h/cppFeatures:
VK_KHR_xcb_surfaceorVK_KHR_xlib_surface)Key Implementation:
Vulkan Extensions Required:
VK_KHR_xcb_surfaceorVK_KHR_xlib_surfaceVK_EXT_external_memory_dma_buf(for DRI3)4. Headless Backend (Final Fallback)
File:
clients/kde-plasma-client/src/renderer/vulkan_headless.h/cppFeatures:
Key Implementation:
5. Backend Detection & Fallback Logic
File:
clients/kde-plasma-client/src/renderer/vulkan_backend_selector.h/cpp