aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/dev
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2020-04-16 21:45:23 +0300
committerLionel Landwerlin <[email protected]>2020-04-30 11:32:54 +0300
commit8c3c1d8a9906f3a45cbe50012b2ca60a3bc21fe8 (patch)
tree2eec66a0df0c5cc3d09be76dcca1dca316fd6dc0 /src/intel/dev
parentfd3c0146723043f66bd18e376fa6526126ff18c0 (diff)
intel/dev: print out error when platform is not found by name
Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Acked-by: Matt Turner <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4594>
Diffstat (limited to 'src/intel/dev')
-rw-r--r--src/intel/dev/gen_device_info.c6
1 files changed, 6 insertions, 0 deletions
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;
}