summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_device_info.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-04-04 14:50:03 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-04-06 18:08:56 -0700
commit5c5a9b7bf6bc912143f6fa9088c1e6ec415ff3bb (patch)
treee2033b8eca1478eb20c81c846b9a136ab8ddb385 /src/mesa/drivers/dri/i965/brw_device_info.c
parenta241ab43b5599f29c43e143bbcaaffef2af3e982 (diff)
downloadexternal_mesa3d-5c5a9b7bf6bc912143f6fa9088c1e6ec415ff3bb.zip
external_mesa3d-5c5a9b7bf6bc912143f6fa9088c1e6ec415ff3bb.tar.gz
external_mesa3d-5c5a9b7bf6bc912143f6fa9088c1e6ec415ff3bb.tar.bz2
brw/device_info: Add a helper for getting a device name
This is needed by the Vulkan driver Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_device_info.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_device_info.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_device_info.c b/src/mesa/drivers/dri/i965/brw_device_info.c
index c703fb5..3666190 100644
--- a/src/mesa/drivers/dri/i965/brw_device_info.c
+++ b/src/mesa/drivers/dri/i965/brw_device_info.c
@@ -482,3 +482,15 @@ brw_get_device_info(int devid)
return devinfo;
}
+
+const char *
+brw_get_device_name(int devid)
+{
+ switch (devid) {
+#undef CHIPSET
+#define CHIPSET(id, family, name) case id: return name;
+#include "pci_ids/i965_pci_ids.h"
+ default:
+ return NULL;
+ }
+}