Revert "intel/dev: Remove unused intel_get_device_info_for_build() function"

This reverts commit 0cc89ca03a.

This allows to use PCI IDs without having to set INTEL_FORCE_PROBE environment
variable.  Useful for tests and tools, I'm assuming the original user of it is gone
or out-of-tree.

Acked-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41413>
This commit is contained in:
Caio Oliveira 2026-05-29 07:28:07 -07:00 committed by Marge Bot
parent 82b68cc7cc
commit e962477875
2 changed files with 9 additions and 0 deletions

View file

@ -1702,6 +1702,13 @@ intel_get_device_info_from_pci_id(int pci_id,
return intel_get_device_info_from_pci_id_common(pci_id, false, devinfo);
}
bool
intel_get_device_info_for_build(int pci_id,
struct intel_device_info *devinfo)
{
return intel_get_device_info_from_pci_id_common(pci_id, true, devinfo);
}
bool
intel_device_info_compute_system_memory(struct intel_device_info *devinfo, bool update)
{

View file

@ -188,6 +188,8 @@ intel_vram_all_mappable(const struct intel_device_info *devinfo)
bool intel_get_device_info_from_fd(int fh, struct intel_device_info *devinfo, int min_ver, int max_ver);
bool intel_get_device_info_from_pci_id(int pci_id,
struct intel_device_info *devinfo);
bool intel_get_device_info_for_build(int pci_id,
struct intel_device_info *devinfo);
/* Only updates intel_device_info::regions::...::free fields. The
* class/instance/size should remain the same over time.