[Mesa-dev] [PATCH 2/4] intel/decoder: Print ISL formats for vertex elements
Jason Ekstrand
jason at jlekstrand.net
Fri Aug 24 21:40:57 UTC 2018
---
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.17.1
More information about the mesa-dev
mailing list