From 618d0542830bf478f23da8216bd0df62e9f5ce18 Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Fri, 12 Jul 2019 16:13:56 -0700 Subject: intel/gen_decoder: Add array field. We currently use the group->next pointer to iterate through the tags. This change them to be a type of field, so we can descend into them while iterating, and then go back to the original position. Will be useful when we want to decode 's inside 's, and when there are more 's after a tag. Reviewed-by: Lionel Landwerlin --- src/intel/common/gen_decoder.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/intel/common/gen_decoder.h') diff --git a/src/intel/common/gen_decoder.h b/src/intel/common/gen_decoder.h index 9ef253c50ce..c71095f122b 100644 --- a/src/intel/common/gen_decoder.h +++ b/src/intel/common/gen_decoder.h @@ -175,6 +175,7 @@ union gen_field_value { struct gen_field { struct gen_group *parent; struct gen_field *next; + struct gen_group *array; char *name; int start, end; -- cgit v1.2.3