From 6bf1cbfc2092cc44f33a4a3e397e81136817435d Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Thu, 4 May 2023 12:37:56 +0000 Subject: [PATCH] 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"