mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-25 15:56:01 +00:00
Main now has its own 0121-0125 (window override walk, host-event wake, commit fences, done at import, HUD frame times), which sorted in between this branch's 0120-0135. The branch's sixteen patches move to 0920-0935 with the same last two digits, so they apply after main's set and stay clear of its next numbers. Applying all 38 to gamescope 3.16.29 in the old order and the new one gives the same tree (checked with patch -p1, as build-in-arch.sh does). PATCHES.md and the one code comment that named 0130 follow the new numbers.
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++ )
|