From 3fb62db3ced55438adc46f5644dfd951b41e7775 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Thu, 4 May 2023 12:13:16 +0000 Subject: [PATCH 1/2] mesa: update to 23.1.0 --- packages/graphics/mesa/package.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/graphics/mesa/package.mk b/packages/graphics/mesa/package.mk index bbf2c72c21..a58605f1f3 100644 --- a/packages/graphics/mesa/package.mk +++ b/packages/graphics/mesa/package.mk @@ -3,8 +3,8 @@ # Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv) PKG_NAME="mesa" -PKG_VERSION="23.0.3" -PKG_SHA256="386362a5d80df3b096636b67f340e1ce67b705b44767d5bdd11d2ed1037192d5" +PKG_VERSION="23.1.0" +PKG_SHA256="a9dde3c76571c4806245a05bda1cceee347c3267127e9e549e4f4e225d92e992" PKG_LICENSE="OSS" PKG_SITE="http://www.mesa3d.org/" PKG_URL="https://mesa.freedesktop.org/archive/mesa-${PKG_VERSION}.tar.xz" @@ -13,8 +13,7 @@ PKG_LONGDESC="Mesa is a 3-D graphics library with an API." get_graphicdrivers -PKG_MESON_OPTS_TARGET="-Ddri-drivers= \ - -Dgallium-drivers=${GALLIUM_DRIVERS// /,} \ +PKG_MESON_OPTS_TARGET="-Dgallium-drivers=${GALLIUM_DRIVERS// /,} \ -Dgallium-extra-hud=false \ -Dgallium-omx=disabled \ -Dgallium-nine=false \ From 6bf1cbfc2092cc44f33a4a3e397e81136817435d Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Thu, 4 May 2023 12:37:56 +0000 Subject: [PATCH 2/2] mesa: enable intel-xe-kmd ref: - https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20418 Xe KMD is a fresh KMD implementation for Intel GPUs, you can read more about it in here: https://patchwork.freedesktop.org/series/112188/ Xe KMD will only support Tigerlake and newer platforms, so here is added Xe KMD support for Iris and ANV, to properly work it is necessary to enable Xe KMD in build time with -Dintel-xe-kmd=enabled then in run time it will check if you have i915 or Xe KMD loaded and take the appropriate code paths. --- packages/graphics/mesa/package.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/graphics/mesa/package.mk b/packages/graphics/mesa/package.mk index a58605f1f3..fe69cba132 100644 --- a/packages/graphics/mesa/package.mk +++ b/packages/graphics/mesa/package.mk @@ -48,6 +48,10 @@ else -Dglx=disabled" fi +if listcontains "${GRAPHIC_DRIVERS}" "iris"; then + PKG_MESON_OPTS_TARGET+=" -Dintel-xe-kmd=enabled" +fi + if listcontains "${GRAPHIC_DRIVERS}" "(nvidia|nvidia-ng)"; then PKG_DEPENDS_TARGET+=" libglvnd" PKG_MESON_OPTS_TARGET+=" -Dglvnd=true"