iris: Stop hardcoding 0:2:0 for the PCI bus address

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33656>
This commit is contained in:
Adam Jackson
2025-02-20 16:33:15 -05:00
committed by Marge Bot
parent 68fb3a601c
commit 0d5db86eba

View File

@@ -454,11 +454,10 @@ iris_init_screen_caps(struct iris_screen *screen)
caps->frontend_noop = true;
// XXX: don't hardcode 00:00:02.0 PCI here
caps->pci_group = 0;
caps->pci_bus = 0;
caps->pci_device = 2;
caps->pci_function = 0;
caps->pci_group = devinfo->pci_domain;
caps->pci_bus = devinfo->pci_bus;
caps->pci_device = devinfo->pci_dev;
caps->pci_function = devinfo->pci_func;
caps->opencl_integer_functions =
caps->integer_multiply_32x16 = true;