[sway] don't force vulkan on Intel IGP

This commit is contained in:
Gwenhael Le Moine 2024-05-07 13:38:20 +02:00
parent d8f68b8929
commit 7a0423d99d
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -59,7 +59,7 @@ PKGNAM=${PRGNAM}
PATCH=${PATCH:-"no"}
if [ "$PATCH" = "yes" ]; then
for p in "$CWD"/patches/*.patch; do
patch -p1 < "$p"
patch -p1 < "$p"
done
PKGVERSION="${PKGVERSION}_patched"
fi
@ -203,7 +203,14 @@ echo "sway Starting: \$( date )"
unset QT_QPA_PLATFORM
export WLR_RENDERER=vulkan
# vulklan seems buggy with Intel IGP
if \$(lsmod | grep -q "^i915.*$"); then
export WLR_RENDERER=gles2
else
export WLR_RENDERER=vulkan
fi
export CLUTTER_BACKEND=wayland
export SDL_VIDEODRIVER=wayland
export XDG_SESSION_DESKTOP=sway