intel/dev: If building the driver, always allow getting device info
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 <jordan.l.justen@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29445>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user