6 #include "gen_device_info.h"
9 main(int argc
, char *argv
[])
16 #define CHIPSET(id, family, str_name) { .pci_id = id, .name = str_name, },
17 #include "pci_ids/i965_pci_ids.h"
18 #include "pci_ids/iris_pci_ids.h"
21 for (uint32_t i
= 0; i
< ARRAY_SIZE(chipsets
); i
++) {
22 struct gen_device_info devinfo
= { 0, };
24 assert(gen_get_device_info_from_pci_id(chipsets
[i
].pci_id
, &devinfo
));
26 assert(devinfo
.gen
!= 0);
27 assert(devinfo
.urb
.size
!= 0);
28 assert(devinfo
.num_eu_per_subslice
!= 0);
29 assert(devinfo
.num_thread_per_eu
!= 0);
30 assert(devinfo
.timestamp_frequency
!= 0);