From d1971be6ea274dae7869e205269c91c3852eec1f Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 24 Aug 2018 15:27:38 -0500 Subject: [PATCH] intel/decoder: Print ISL formats for vertex elements Reviewed-by: Lionel Landwerlin --- src/intel/common/gen_decoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index e9dabeae653..9e46f271633 100644 --- a/src/intel/common/gen_decoder.c +++ b/src/intel/common/gen_decoder.c @@ -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); -- 2.30.2