Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions root/etc/s6-overlay/s6-rc.d/svc-xorg/run
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ node_driver() {
# Pick the render node glamor draws on. DRINODE wins outright
DRI3_NODE=""
if [ -n "${DRINODE}" ]; then
DRI3_NODE="${DRINODE}"
if [ -c "${DRINODE}" ]; then
DRI3_NODE="${DRINODE}"
else
echo "**** DRINODE ${DRINODE} is not in the container, Xvfb runs without DRI3 ****"
fi
else
for node in /dev/dri/renderD*; do
[ -e "${node}" ] || continue
Expand All @@ -44,9 +48,13 @@ fi
# Clear Zink env for xvfb
unset GALLIUM_DRIVER MESA_LOADER_DRIVER_OVERRIDE LIBGL_KOPPER_DRI2

# A software server probes GLX through EGL at startup
if [ -z "${VFBCOMMAND}" ] && [ -f /usr/share/glvnd/egl_vendor.d/50_mesa.json ]; then
export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json
# A software server probes GLX through EGL at startup: keep it on Mesa's EGL,
# and load no EGL external platform for a driver libEGL that comes before glvnd's
if [ -z "${VFBCOMMAND}" ]; then
if [ -f /usr/share/glvnd/egl_vendor.d/50_mesa.json ]; then
export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json
fi
export __EGL_EXTERNAL_PLATFORM_CONFIG_FILENAMES=""
fi

# Run Xvfb server with required extensions
Expand Down
Loading