From 43f795d19f00f62d9b8292f47ae97e976cfde17f Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Tue, 28 May 2024 12:49:43 -0700 Subject: [PATCH] intel/dev: If building the driver, always allow getting device info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that we know when we are getting the devinfo as part of the build process, we can just always force the devinfo to be returned, regardless of whether INTEL_FORCE_PROBE is set. Signed-off-by: Jordan Justen Reviewed-by: José Roberto de Souza Part-of: --- src/intel/dev/intel_device_info.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/intel/dev/intel_device_info.c b/src/intel/dev/intel_device_info.c index b36527c214b..634c55e0fcd 100644 --- a/src/intel/dev/intel_device_info.c +++ b/src/intel/dev/intel_device_info.c @@ -1516,7 +1516,10 @@ intel_device_info_init_common(int pci_id, bool building, bool force_on = false; bool force_off = false; - scan_for_force_probe(pci_id, &force_on, &force_off); + if (building) + force_on = true; + else + scan_for_force_probe(pci_id, &force_on, &force_off); if (force_off) { mesa_logw("%s (0x%x) disabled with INTEL_FORCE_PROBE", devinfo->name, pci_id);