panfrost: tidy up GPU naming to be in line with official names
authorCarsten Haitzler <carsten.haitzler@foss.arm.com>
Wed, 1 Sep 2021 10:09:27 +0000 (11:09 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Sep 2021 11:16:49 +0000 (11:16 +0000)
Offical naming of Mali GPUs is like Mali-G52 or Mali-T860 wth a dash.
Also variants of the same GPU e.g. revision 1 are generally not part
of the name. This adds a dash instead of a space between Mali and the
model and also splits off the r1 revision with a space. This should
keep the naming in-line with offical names and with what the binary
DDK uses for naming.

Signed-off-by: Carsten Haitzler <carsten.haitzler@foss.arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12667>

src/panfrost/lib/pan_props.c

index 08596cb..5b2827b 100644 (file)
@@ -220,18 +220,18 @@ 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)";
-        case 0x6221: return "Mali G72 (Panfrost)";
-        case 0x7093: return "Mali G31 (Panfrost)";
-        case 0x7212: return "Mali G52 (Panfrost)";
-        case 0x7402: return "Mali G52r1 (Panfrost)";
+        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)";
+        case 0x6221: return "Mali-G72 (Panfrost)";
+        case 0x7093: return "Mali-G31 (Panfrost)";
+        case 0x7212: return "Mali-G52 (Panfrost)";
+        case 0x7402: return "Mali-G52 r1 (Panfrost)";
         default:
                     unreachable("Invalid GPU ID");
         }