Skip to content

Commit 920e72b

Browse files
committed
add option to flag off DRI3, enable vaapi if detected
1 parent 120379e commit 920e72b

4 files changed

Lines changed: 9 additions & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ ENV DISPLAY=:1 \
5858
SELKIES_INTERPOSER=/usr/lib/selkies_joystick_interposer.so \
5959
NVIDIA_DRIVER_CAPABILITIES=all \
6060
DISABLE_ZINK=false \
61+
DISABLE_DRI3=false \
6162
TITLE=Selkies
6263

6364
RUN \

Dockerfile.aarch64

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ ENV DISPLAY=:1 \
5858
SELKIES_INTERPOSER=/usr/lib/selkies_joystick_interposer.so \
5959
NVIDIA_DRIVER_CAPABILITIES=all \
6060
DISABLE_ZINK=false \
61+
DISABLE_DRI3=false \
6162
TITLE=Selkies
6263

6364
RUN \

root/etc/s6-overlay/s6-rc.d/svc-selkies/run

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ if [ ! -z ${DEV_MODE+x} ]; then
5656
--mode="websockets"
5757
fi
5858

59+
# Enable vaapi if device detected
60+
if ! which nvidia-smi && [ -e "/dev/dri/renderD128" ] && [ ! -z ${DRI_NODE+x} ]; then
61+
DRI_NODE="/dev/dri/renderD128"
62+
fi
5963

6064
# Start Selkies
6165
exec s6-setuidgid abc \

root/etc/s6-overlay/s6-rc.d/svc-xorg/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ fi
88
if [ ! -z ${DRINODE+x} ]; then
99
VFBCOMMAND="-vfbdevice ${DRINODE}"
1010
fi
11+
if [ "${DISABLE_DRI3}" != "false" ]; then
12+
VFBCOMMAND=""
13+
fi
1114
DEFAULT_RES="15360x8640"
1215
if [ ! -z ${MAX_RES+x} ]; then
1316
DEFAULT_RES="${MAX_RES}"

0 commit comments

Comments
 (0)