DRM_PANFROST_PARAM_THREAD_TLS_ALLOC, false, 1024);
}
+/* Given a GPU ID like 0x860, return a prettified model name */
+const char *
+panfrost_model_name(unsigned gpu_id)
+{
+ switch (gpu_id) {
+ case 0x600: return "Mali T600 (Panfrost)";
+ case 0x620: return "Mali T620 (Panfrost)";
+ case 0x720: return "Mali T720 (Panfrost)";
+ case 0x820: return "Mali T820 (Panfrost)";
+ case 0x830: return "Mali T830 (Panfrost)";
+ case 0x750: return "Mali T760 (Panfrost)";
+ case 0x860: return "Mali T860 (Panfrost)";
+ case 0x880: return "Mali T880 (Panfrost)";
+ default:
+ unreachable("Invalid GPU ID");
+ }
+}