Mesa (master): intel/dev: print out error when platform is not found by name
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 30 08:54:41 UTC 2020
Module: Mesa
Branch: master
Commit: 8c3c1d8a9906f3a45cbe50012b2ca60a3bc21fe8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c3c1d8a9906f3a45cbe50012b2ca60a3bc21fe8
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Thu Apr 16 21:45:23 2020 +0300
intel/dev: print out error when platform is not found by name
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
Acked-by: Matt Turner <mattst88 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4594>
---
src/intel/dev/gen_device_info.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/intel/dev/gen_device_info.c b/src/intel/dev/gen_device_info.c
index 299d33f9501..742c17f64c8 100644
--- a/src/intel/dev/gen_device_info.c
+++ b/src/intel/dev/gen_device_info.c
@@ -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;
}
More information about the mesa-commit
mailing list