mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-26 00:06:02 +00:00
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.
27 lines
939 B
Diff
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++ )
|