mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-18 13:48:06 +02:00
This updates our product name strings to match the ones reported by the Windows driver, which is typically the marketing name. We retain a platform abbreviation and GT level in parenthesis so that we're able to distinguish similar parts more easily, helping us better understand at a glance which GPU a bug reporter has. Acked-by: Matt Turner <mattst88@gmail.com> Acked-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3371> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3371>
34 lines
792 B
C
34 lines
792 B
C
#undef NDEBUG
|
|
|
|
#include <stdint.h>
|
|
#include <assert.h>
|
|
|
|
#include "gen_device_info.h"
|
|
|
|
int
|
|
main(int argc, char *argv[])
|
|
{
|
|
struct {
|
|
uint32_t pci_id;
|
|
const char *name;
|
|
} chipsets[] = {
|
|
#undef CHIPSET
|
|
#define CHIPSET(id, family, family_str, 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++) {
|
|
struct gen_device_info devinfo = { 0, };
|
|
|
|
assert(gen_get_device_info_from_pci_id(chipsets[i].pci_id, &devinfo));
|
|
|
|
assert(devinfo.gen != 0);
|
|
assert(devinfo.urb.size != 0);
|
|
assert(devinfo.num_eu_per_subslice != 0);
|
|
assert(devinfo.num_thread_per_eu != 0);
|
|
assert(devinfo.timestamp_frequency != 0);
|
|
}
|
|
|
|
return 0;
|
|
}
|