gamescope-session/patches/0001-update-to-work-on-nobara-with-hdr.patch

53 lines
1.8 KiB
Diff
Raw Normal View History

2023-04-27 16:33:05 +02:00
From 9611d3d68b659a1328836f77fc209eb6db534320 Mon Sep 17 00:00:00 2001
From: GloriousEggroll <gloriouseggroll@gmail.com>
Date: Wed, 11 Jan 2023 10:08:19 -0700
Subject: [PATCH] update to work on nobara with hdr
---
usr/share/gamescope-session/gamescope-session-script | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/usr/share/gamescope-session/gamescope-session-script b/usr/share/gamescope-session/gamescope-session-script
index 5c99641..7f3982a 100755
--- a/usr/share/gamescope-session/gamescope-session-script
+++ b/usr/share/gamescope-session/gamescope-session-script
2023-04-27 16:27:21 +02:00
@@ -7,6 +7,13 @@
export INTEL_DEBUG=norbc
export mesa_glthread=true
+# Set Gamescope args
+export GAMESCOPE_EXTRA_LAUNCH_ARGS='--hdr-enabled --hdr-itm-enable'
+export GAMESCOPE_BASE_LAUNCH_ARGS='--xwayland-count 2 -O *,eDP-1 --default-touch-mode 4 --hide-cursor-delay 3000 --fade-out-duration 200':$GAMESCOPE_EXTRA_LAUNCH_ARGS
2023-04-27 12:46:02 +02:00
+
+export ENABLE_GAMESCOPE_WSI=1
+export DXVK_HDR=1
2023-04-27 16:27:21 +02:00
+
# Some environment variables by default (taken from Deck session)
export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
2023-04-27 12:46:02 +02:00
2023-04-27 16:27:21 +02:00
@@ -184,22 +191,14 @@
$CURSOR \
-e \
$RESOLUTION \
- --xwayland-count 2 \
- -O *,eDP-1 \
- --default-touch-mode 4 \
- --hide-cursor-delay 3000 \
- --fade-out-duration 200 \
+ $GAMESCOPE_EXTRA_LAUNCH_ARGS \
-R $socket -T $stats"
else
GAMESCOPECMD="/usr/bin/gamescope \
$CURSOR \
-e \
$RESOLUTION \
- --xwayland-count 2 \
- -O *,eDP-1 \
- --default-touch-mode 4 \
- --hide-cursor-delay 3000 \
- --fade-out-duration 200 \
+ $GAMESCOPE_EXTRA_LAUNCH_ARGS \
--prefer-vk-device $VULKAN_ADAPTER \
-R $socket -T $stats"
fi