mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-28 19:20:16 +00:00
fix: Add fix for black screen on intel in gamescope
This commit is contained in:
parent
caa0ffebe8
commit
e5a6bffee4
@ -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
|
||||
|
13
spec_files/gamescope/intel.patch
Normal file
13
spec_files/gamescope/intel.patch
Normal 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))
|
Loading…
x
Reference in New Issue
Block a user