{
struct iris_screen *screen = (struct iris_screen *)pscreen;
static char buf[128];
- const char *chipset;
+ const char *name = gen_get_device_name(screen->pci_id);
- switch (screen->pci_id) {
-#undef CHIPSET
-#define CHIPSET(id, symbol, str) case id: chipset = str; break;
-#include "pci_ids/i965_pci_ids.h"
-#include "pci_ids/iris_pci_ids.h"
- default:
- chipset = "Unknown Intel Chipset";
- break;
- }
+ if (!name)
+ name = "Intel Unknown";
- snprintf(buf, sizeof(buf), "Mesa %s", chipset);
+ snprintf(buf, sizeof(buf), "Mesa %s", name);
return buf;
}