Files
DroidDeck/tools/gamescope/patches/0134-flippable-image-no-backend-modifiers.patch
T
The412Banner c4bba945ce gamescope 0134: linear when the backend offers no modifier; Venus on Mesa 26.2.5
0134: CVulkanTexture::BInit asserted !modifiers.empty() when the nested Wayland
backend offered no modifier for a flippable image's format (NieR Replicant on a
Pixel 9a under Venus, session exit 134). It now tries linear and logs it.
Venus ICD: mesa-26.2.5 (venus TLS teardown from an unloaded driver, virtio-gpu
devices without 3D skipped); virglrenderer stays on 1.3.0.
2026-10-25 03:50:08 +00:00

27 lines
939 B
Diff

diff --git a/src/rendervulkan.cpp b/src/rendervulkan.cpp
--- a/src/rendervulkan.cpp
+++ b/src/rendervulkan.cpp
@@ -2235,9 +2235,19 @@
else
{
std::span<const uint64_t> modifiers = GetBackend()->GetSupportedModifiers( drmFormat );
- assert( !modifiers.empty() );
- possibleModifiers = modifiers.data();
- numPossibleModifiers = modifiers.size();
+ if ( modifiers.empty() )
+ {
+ // The nested backend offered no modifier for this format (a game's buffer on Venus,
+ // NieR Replicant on a Pixel 9a): linear instead of the assert that ended the session.
+ vk_log.errorf( "flippable image: the backend offers no modifier for DRM format 0x%x; trying linear", drmFormat );
+ possibleModifiers = &linear;
+ numPossibleModifiers = 1;
+ }
+ else
+ {
+ possibleModifiers = modifiers.data();
+ numPossibleModifiers = modifiers.size();
+ }
}
for ( size_t i = 0; i < numPossibleModifiers; i++ )