mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 09:30:36 +02:00
intel/dev: print out error when platform is not found by name
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Acked-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4594>
This commit is contained in:
parent
fd3c014672
commit
8c3c1d8a99
1 changed files with 6 additions and 0 deletions
|
|
@ -76,6 +76,12 @@ gen_device_name_to_pci_device_id(const char *name)
|
|||
return name_map[i].pci_id;
|
||||
}
|
||||
|
||||
fprintf(stderr, "Unknown platform '%s'. Supported names: %s",
|
||||
name, name_map[0].name);
|
||||
for (unsigned i = 1; i < ARRAY_SIZE(name_map); i++)
|
||||
fprintf(stderr, ", %s", name_map[i].name);
|
||||
fprintf(stderr, "\n");
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue