chore: Update gamescope

This commit is contained in:
Kyle Gospodnetich 2024-08-03 22:25:18 -07:00
parent 371ff845a1
commit 044c2e8079
3 changed files with 1203 additions and 37 deletions

View File

@ -1,35 +0,0 @@
From e31b8dea137d2cedd4cf71fede560feb2ad3ffc5 Mon Sep 17 00:00:00 2001
From: Joshua Ashton <joshua@froggi.es>
Date: Fri, 2 Aug 2024 21:11:11 +0100
Subject: [PATCH] DRMBackend: Fix mode fallback on connector changes
---
src/Backends/DRMBackend.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/Backends/DRMBackend.cpp b/src/Backends/DRMBackend.cpp
index 2712994ef..ee2cbd3d9 100644
--- a/src/Backends/DRMBackend.cpp
+++ b/src/Backends/DRMBackend.cpp
@@ -1040,6 +1040,9 @@ static bool setup_best_connector(struct drm_t *drm, bool force, bool initial)
return false;
}
+ // Don't allow rollback of mode_id after connector change
+ drm->current.mode_id = drm->pending.mode_id;
+
const struct wlserver_output_info wlserver_output_info = {
.description = description,
.phys_width = (int) best->GetModeConnector()->mmWidth,
@@ -2876,6 +2879,11 @@ bool drm_set_connector( struct drm_t *drm, gamescope::CDRMConnector *conn )
return false;
}
+ // If we are changing connector, zero out the current and pending mode IDs.
+ // So we don't try to use one mode from the old connector on the new one if we roll back.
+ drm->pending.mode_id = nullptr;
+ drm->current.mode_id = nullptr;
+
drm->pConnector = conn;
drm->needs_modeset = true;

View File

@ -26,8 +26,8 @@ Patch3: v2-0001-always-send-ctrl-1-2-to-steam-s-wayland-session.patch
Patch4: drm-Separate-BOE-and-SDC-OLED-Deck-panel-rates.patch
# https://github.com/ValveSoftware/gamescope/pull/1444
Patch5: 1444.patch
# https://github.com/ValveSoftware/gamescope/commit/e31b8dea137d2cedd4cf71fede560feb2ad3ffc5
Patch6: e31b8dea137d2cedd4cf71fede560feb2ad3ffc5.patch
# https://github.com/ValveSoftware/gamescope
Patch6: upstream.patch
BuildRequires: meson >= 0.54.0
BuildRequires: ninja-build

File diff suppressed because it is too large Load Diff