From 4f231600810699d8982e893bf6afa8db18c5de70 Mon Sep 17 00:00:00 2001 From: Boria138 Date: Fri, 8 Dec 2023 15:28:19 +0600 Subject: [PATCH] fixed Intel/Iris: Corrupted rendering of OpenGL and Vulkan apps in gamescope --- data_from_portwine/scripts/runlib | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data_from_portwine/scripts/runlib b/data_from_portwine/scripts/runlib index d8c15f93..547587e1 100755 --- a/data_from_portwine/scripts/runlib +++ b/data_from_portwine/scripts/runlib @@ -118,11 +118,14 @@ start_portwine () { if [[ ! -z "$GAMESCOPE_ARGS" ]] then export PW_RUN_GAMESCOPE="gamescope -o 30 ${GAMESCOPE_ARGS} --" else export PW_RUN_GAMESCOPE="gamescope -o 30 --" + # Workaround for https://gitlab.freedesktop.org/mesa/mesa/-/issues/6029 + if grep -q "i915" <<< $(lsmod); then + export INTEL_DEBUG=norbc fi export PW_WINE_FULLSCREEN_FSR=0 else export PW_USE_GAMESCOPE=0 - unset PW_RUN_GAMESCOPE + unset PW_RUN_GAMESCOPE INTEL_DEBUG fi enabled_fake_nvidia_videocard ()