v3d: Use a short, underscored name for packets in CLIF/CL dumping.
[mesa.git] / src / broadcom / cle / v3d_decoder.c
index c1e9e50a247a4de382eeee24c26893c6354a3bfa..00d67b2a2e6273fde2ec3b9a7045dc1269506ee3 100644 (file)
@@ -453,7 +453,9 @@ start_element(void *data, const char *element_name, const char **atts)
         ctx->loc.line_number = XML_GetCurrentLineNumber(ctx->parser);
 
         for (i = 0; atts[i]; i += 2) {
-                if (strcmp(atts[i], "name") == 0)
+                if (strcmp(atts[i], "shortname") == 0)
+                        name = atts[i + 1];
+                else if (strcmp(atts[i], "name") == 0 && !name)
                         name = atts[i + 1];
                 else if (strcmp(atts[i], "gen") == 0)
                         ver = atts[i + 1];