summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-06-27 16:34:50 -0700
committerEric Anholt <[email protected]>2018-07-27 12:56:36 -0700
commit95a0f9982540431494bfc4c2512a0b830ba923af (patch)
tree59696a7b5b709bb903f5d1e9732c1e6d871e33ad /src
parent1c8e4632a777c30b2554b1031181954efc071e0b (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/broadcom/cle/v3d_decoder.c2
1 files changed, 2 insertions, 0 deletions
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;