crocus: add Mesa gallium driver for older Intel GPUs

This commit is contained in:
Tomáš Kelemen (vudiq) 2021-10-27 15:45:50 +02:00
parent f11ba02f91
commit 4e6f8705e6
No known key found for this signature in database
GPG Key ID: 5CE55E600E0B3B22
5 changed files with 15 additions and 4 deletions

View File

@ -23,7 +23,14 @@ get_graphicdrivers() {
V4L2_SUPPORT="no"
if [ "${GRAPHIC_DRIVERS}" = "all" ]; then
GRAPHIC_DRIVERS="iris i915 i965 r200 r300 r600 radeonsi nvidia nvidia-legacy vmware virtio vc4"
GRAPHIC_DRIVERS="crocus iris i915 i965 r200 r300 r600 radeonsi nvidia nvidia-legacy vmware virtio vc4"
fi
if listcontains "${GRAPHIC_DRIVERS}" "crocus"; then
GALLIUM_DRIVERS+=" crocus"
XORG_DRIVERS+=" intel"
COMPOSITE_SUPPORT="yes"
VAAPI_SUPPORT="yes"
fi
if listcontains "${GRAPHIC_DRIVERS}" "etnaviv"; then

View File

@ -17,7 +17,7 @@ get_graphicdrivers
if [ "${TARGET_ARCH}" = "x86_64" ]; then
PKG_DEPENDS_TARGET+=" nasm:host x265"
if listcontains "${GRAPHIC_DRIVERS}" "(iris|i915|i965)"; then
if listcontains "${GRAPHIC_DRIVERS}" "(crocus|iris|i915|i965)"; then
PKG_DEPENDS_TARGET+=" intel-vaapi-driver"
fi
fi

View File

@ -26,7 +26,7 @@ PKG_MESON_OPTS_TARGET="-Dlibkms=false \
-Dinstall-test-programs=false \
-Dudev=false"
listcontains "${GRAPHIC_DRIVERS}" "(iris|i915|i965)" &&
listcontains "${GRAPHIC_DRIVERS}" "(crocus|iris|i915|i965)" &&
PKG_MESON_OPTS_TARGET+=" -Dintel=true" || PKG_MESON_OPTS_TARGET+=" -Dintel=false"
listcontains "${GRAPHIC_DRIVERS}" "(r200|r300|r600|radeonsi)" &&

View File

@ -66,6 +66,10 @@ else
PKG_MESON_OPTS_TARGET+=" -Dgallium-va=disabled"
fi
if listcontains "${GRAPHIC_DRIVERS}" "crocus"; then
PKG_MESON_OPTS_TARGET+=" -Dprefer-crocus=true"
fi
if listcontains "${GRAPHIC_DRIVERS}" "vmware"; then
PKG_MESON_OPTS_TARGET+=" -Dgallium-xa=enabled"
else

View File

@ -39,7 +39,7 @@ if [ "${MEDIACENTER}" = "kodi" ]; then
fi
get_graphicdrivers
if listcontains "${GRAPHIC_DRIVERS}" "(iris|i915|i965)"; then
if listcontains "${GRAPHIC_DRIVERS}" "(crocus|iris|i915|i965)"; then
PKG_DEPENDS_TARGET+=" intel-vaapi-driver media-driver"
fi