intel/decoder: Print ISL formats for vertex elements
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 24 Aug 2018 20:27:38 +0000 (15:27 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 25 Aug 2018 12:50:40 +0000 (07:50 -0500)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/common/gen_decoder.c

index e9dabeae6532f85440f3f8ed8f515bf222e86650..9e46f2716336e50c242c61c8c122bb6db5a8c22c 100644 (file)
@@ -971,7 +971,8 @@ iter_decode_field(struct gen_field_iterator *iter)
       int length = strlen(iter->value);
       snprintf(iter->value + length, sizeof(iter->value) - length,
                " (%s)", enum_name);
-   } else if (strcmp(iter->name, "Surface Format") == 0) {
+   } else if (strcmp(iter->name, "Surface Format") == 0 ||
+              strcmp(iter->name, "Source Element Format") == 0) {
       if (isl_format_is_valid((enum isl_format)v.qw)) {
          const char *fmt_name = isl_format_get_name((enum isl_format)v.qw);
          int length = strlen(iter->value);