From 7d34ec4691d7c713e0dff947314c1954a3c76f1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Mon, 19 Dec 2022 09:28:00 -0800 Subject: [PATCH] intel: Add Meson parameter to enable Xe KMD support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The plan is to compile all the Xe files but in run time it will fail to detect the KMD loaded and it will fall back to software rendering(if build). Compiling Xe files makes sure newer commits don't break Xe even if developers don't have Xe enabled in their build folder. Signed-off-by: José Roberto de Souza Reviewed-by: Lionel Landwerlin Part-of: --- meson.build | 4 ++++ meson_options.txt | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/meson.build b/meson.build index 2c7c4aaa59e..2b1b68f87b9 100644 --- a/meson.build +++ b/meson.build @@ -1428,6 +1428,10 @@ if with_any_intel and ['x86', 'x86_64'].contains(host_machine.cpu_family()) pre_args += '-DSUPPORT_INTEL_INTEGRATED_GPUS' endif +if get_option('intel-xe-kmd').enabled() + pre_args += '-DINTEL_XE_KMD_SUPPORTED' +endif + # Determine whether or not the rt library is needed for time functions if host_machine.system() == 'windows' or cc.has_function('clock_gettime') dep_clock = null_dep diff --git a/meson_options.txt b/meson_options.txt index 3b66f75ae83..93a71f77001 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -630,3 +630,9 @@ option( 'the default driconf file is hardcoded into Mesa. ' + 'Requires expat.' ) +option ( + 'intel-xe-kmd', + type : 'feature', + value : 'disabled', + description: 'Enable Intel Xe KMD support.' +)