mirror of
https://github.com/linuxserver/docker-webtop.git
synced 2025-07-08 14:24:50 +02:00
use nvidia-smi to gate zink
This commit is contained in:
parent
8e4f3a30dc
commit
3f805a6a79
@ -42,15 +42,8 @@ if [ ! -f "${STARTUP_FILE}" ]; then
|
||||
chmod +x $STARTUP_FILE
|
||||
fi
|
||||
|
||||
# Check for any render nodes
|
||||
for node in /dev/dri/renderD*; do
|
||||
if [ -e "$node" ]; then
|
||||
render_node_exists=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
# Enable Zink support if detected
|
||||
if [ "$render_node_exists" = true ] && [ "${DISABLE_ZINK}" == "false" ]; then
|
||||
# Enable Nvidia GPU support if detected
|
||||
if which nvidia-smi && [ "${DISABLE_ZINK}" == "false" ]; then
|
||||
export LIBGL_KOPPER_DRI2=1
|
||||
export MESA_LOADER_DRIVER_OVERRIDE=zink
|
||||
export GALLIUM_DRIVER=zink
|
||||
|
Loading…
x
Reference in New Issue
Block a user