aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/common/gen_decoder.c
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2017-09-26 00:54:49 +0100
committerLionel Landwerlin <[email protected]>2017-11-01 13:49:12 +0000
commit38f338c19a7803a218a9b3249c4d6b2600edd75a (patch)
tree8cb52dcba7159fcf21c5294feb498de060ad9312 /src/intel/common/gen_decoder.c
parent279531672e39cb5a4ffd00bdbb8805d88a366334 (diff)
intel: decoder: extract instruction/structs length
Signed-off-by: Lionel Landwerlin <[email protected]> Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel/common/gen_decoder.c')
-rw-r--r--src/intel/common/gen_decoder.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c
index 97e54cd44ac..24c9fa79ad0 100644
--- a/src/intel/common/gen_decoder.c
+++ b/src/intel/common/gen_decoder.c
@@ -162,6 +162,13 @@ create_group(struct parser_context *ctx,
group->spec = ctx->spec;
group->variable = false;
+ for (int i = 0; atts[i]; i += 2) {
+ char *p;
+ if (strcmp(atts[i], "length") == 0) {
+ group->dw_length = strtoul(atts[i + 1], &p, 0);
+ }
+ }
+
if (parent) {
group->parent = parent;
get_group_offset_count(atts,