loader: default to iris for all future PCI IDs
The existing "fallback" code didn't actually do anything, so this removes it, and instead we just always fallback to `iris` for future PCI IDs. Suggested-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -1226,6 +1226,7 @@ gen_get_device_info_from_pci_id(int pci_id,
|
||||
#define CHIPSET(id, family, name) \
|
||||
case id: *devinfo = gen_device_info_##family; break;
|
||||
#include "pci_ids/i965_pci_ids.h"
|
||||
#include "pci_ids/iris_pci_ids.h"
|
||||
default:
|
||||
fprintf(stderr, "Driver does not support the 0x%x PCI ID.\n", pci_id);
|
||||
return false;
|
||||
@@ -1276,6 +1277,7 @@ gen_get_device_name(int devid)
|
||||
#undef CHIPSET
|
||||
#define CHIPSET(id, family, name) case id: return name;
|
||||
#include "pci_ids/i965_pci_ids.h"
|
||||
#include "pci_ids/iris_pci_ids.h"
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ main(int argc, char *argv[])
|
||||
#undef CHIPSET
|
||||
#define CHIPSET(id, family, str_name) { .pci_id = id, .name = str_name, },
|
||||
#include "pci_ids/i965_pci_ids.h"
|
||||
#include "pci_ids/iris_pci_ids.h"
|
||||
};
|
||||
|
||||
for (uint32_t i = 0; i < ARRAY_SIZE(chipsets); i++) {
|
||||
|
||||
Reference in New Issue
Block a user