mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #3415 from chewitt/config-graphic
config/graphic: add lima/panfrost options and sort
This commit is contained in:
commit
319be3bb49
@ -26,6 +26,20 @@ get_graphicdrivers() {
|
||||
GRAPHIC_DRIVERS="i915 i965 r200 r300 r600 radeonsi nvidia nvidia-legacy vmware virtio vc4"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "etnaviv"; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,etnaviv,imx"
|
||||
V4L2_SUPPORT="yes"
|
||||
VAAPI_SUPPORT="no"
|
||||
VDPAU_SUPPORT="no"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "freedreno"; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,freedreno"
|
||||
V4L2_SUPPORT="yes"
|
||||
VAAPI_SUPPORT="no"
|
||||
VDPAU_SUPPORT="no"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "i915"; then
|
||||
DRI_DRIVERS="$DRI_DRIVERS,i915"
|
||||
XORG_DRIVERS="$XORG_DRIVERS intel"
|
||||
@ -40,6 +54,11 @@ get_graphicdrivers() {
|
||||
VAAPI_SUPPORT="yes"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "lima"; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,kmsro,lima"
|
||||
V4L2_SUPPORT="yes"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "nvidia"; then
|
||||
XORG_DRIVERS="$XORG_DRIVERS nvidia"
|
||||
VDPAU_SUPPORT="yes"
|
||||
@ -50,6 +69,11 @@ get_graphicdrivers() {
|
||||
VDPAU_SUPPORT="yes"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "panfrost"; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,kmsro,panfrost"
|
||||
V4L2_SUPPORT="yes"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "r200"; then
|
||||
DRI_DRIVERS="$DRI_DRIVERS,r200"
|
||||
XORG_DRIVERS="$XORG_DRIVERS ati"
|
||||
@ -82,16 +106,6 @@ get_graphicdrivers() {
|
||||
VAAPI_SUPPORT="yes"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "vmware"; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,svga"
|
||||
XORG_DRIVERS="$XORG_DRIVERS vmware"
|
||||
COMPOSITE_SUPPORT="yes"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "virtio"; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,virgl"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "vc4"; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,vc4"
|
||||
V4L2_SUPPORT="yes"
|
||||
@ -99,18 +113,14 @@ get_graphicdrivers() {
|
||||
VDPAU_SUPPORT="no"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "freedreno"; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,freedreno"
|
||||
V4L2_SUPPORT="yes"
|
||||
VAAPI_SUPPORT="no"
|
||||
VDPAU_SUPPORT="no"
|
||||
if listcontains "$GRAPHIC_DRIVERS" "virtio"; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,virgl"
|
||||
fi
|
||||
|
||||
if listcontains "$GRAPHIC_DRIVERS" "etnaviv"; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,etnaviv,imx"
|
||||
V4L2_SUPPORT="yes"
|
||||
VAAPI_SUPPORT="no"
|
||||
VDPAU_SUPPORT="no"
|
||||
if listcontains "$GRAPHIC_DRIVERS" "vmware"; then
|
||||
GALLIUM_DRIVERS="$GALLIUM_DRIVERS,svga"
|
||||
XORG_DRIVERS="$XORG_DRIVERS vmware"
|
||||
COMPOSITE_SUPPORT="yes"
|
||||
fi
|
||||
|
||||
# remove leading comma if present
|
||||
|
Loading…
x
Reference in New Issue
Block a user