From 95a0f9982540431494bfc4c2512a0b830ba923af Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 27 Jun 2018 16:34:50 -0700 Subject: v3d: CLIF-dump the "Vec size" field as 0 == maximum value. That's what a user should want to see, and what the CLIF parser wants. This should maybe be generalized. --- src/broadcom/cle/v3d_decoder.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/broadcom/cle/v3d_decoder.c b/src/broadcom/cle/v3d_decoder.c index 832ff3c7089..e1ce2f65e89 100644 --- a/src/broadcom/cle/v3d_decoder.c +++ b/src/broadcom/cle/v3d_decoder.c @@ -858,6 +858,8 @@ v3d_field_iterator_next(struct v3d_field_iterator *iter) uint32_t value = __gen_unpack_uint(iter->p, s, e); if (iter->field->minus_one) value++; + if (strcmp(iter->field->name, "Vec size") == 0 && value == 0) + value = 1 << (e - s); snprintf(iter->value, sizeof(iter->value), "%u", value); enum_name = v3d_get_enum_name(&iter->field->inline_enum, value); break; -- cgit v1.2.3