mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-30 03:32:36 +00:00
Merge branch 'main' into testing
This commit is contained in:
commit
9196bc1ed0
@ -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;
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: gamescope
|
Name: gamescope
|
||||||
Version: 100.%{gamescope_tag}
|
Version: 100.%{gamescope_tag}
|
||||||
Release: 20.bazzite
|
Release: 21.bazzite
|
||||||
Summary: Micro-compositor for video games on Wayland
|
Summary: Micro-compositor for video games on Wayland
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -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
|
Patch4: drm-Separate-BOE-and-SDC-OLED-Deck-panel-rates.patch
|
||||||
# https://github.com/ValveSoftware/gamescope/pull/1444
|
# https://github.com/ValveSoftware/gamescope/pull/1444
|
||||||
Patch5: 1444.patch
|
Patch5: 1444.patch
|
||||||
# https://github.com/ValveSoftware/gamescope/commit/e31b8dea137d2cedd4cf71fede560feb2ad3ffc5
|
# https://github.com/ValveSoftware/gamescope
|
||||||
Patch6: e31b8dea137d2cedd4cf71fede560feb2ad3ffc5.patch
|
Patch6: upstream.patch
|
||||||
|
|
||||||
BuildRequires: meson >= 0.54.0
|
BuildRequires: meson >= 0.54.0
|
||||||
BuildRequires: ninja-build
|
BuildRequires: ninja-build
|
||||||
|
1201
spec_files/gamescope/upstream.patch
Normal file
1201
spec_files/gamescope/upstream.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user