fix: Add fix for black screen on intel in gamescope

This commit is contained in:
Kyle Gospodnetich 2023-12-14 11:05:25 -08:00
parent caa0ffebe8
commit e5a6bffee4
2 changed files with 15 additions and 0 deletions

View File

@ -11,6 +11,7 @@ URL: https://github.com/ValveSoftware/gamescope
# Create stb.pc to satisfy dependency('stb')
Source1: stb.pc
Source2: remove-720p-restrict.patch
Source3: intel.patch
BuildRequires: meson >= 0.54.0
BuildRequires: ninja-build
@ -74,6 +75,7 @@ git submodule update --init --recursive
mkdir -p pkgconfig
cp %{SOURCE1} pkgconfig/stb.pc
patch -Np1 < %{SOURCE2}
patch -Np1 < %{SOURCE3}
%build
cd gamescope

View File

@ -0,0 +1,13 @@
diff --git a/src/shaders/cs_composite_blit.comp b/src/shaders/cs_composite_blit.comp
index 52bd9d517..359ee3a19 100644
--- a/src/shaders/cs_composite_blit.comp
+++ b/src/shaders/cs_composite_blit.comp
@@ -50,7 +50,7 @@ void main() {
}
outputValue.rgb = encodeOutputColor(outputValue.rgb);
- imageStore(dst, ivec2(coord), outputValue);
+ imageStore(dst, ivec2(coord), vec4(outputValue.rgb, 1));
// Indicator to quickly tell if we're in the compositing path or not.
if (checkDebugFlag(compositedebug_Markers))