summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-12-13 08:23:50 -0800
committerJason Ekstrand <[email protected]>2017-12-14 13:27:09 -0800
commit4cb96fbd91a50bf87d0ac4e014de5986278ee7ee (patch)
tree869b6e7e6b62fd94fa305be2138dbbc7ad870090 /src/intel
parent79269e8f4bc37ab31975cae0d5db4b85eaafe0d8 (diff)
intel/decoder: Expose the raw field value in the iterator
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/common/gen_decoder.c3
-rw-r--r--src/intel/common/gen_decoder.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c
index 4f373a371ee..87a81b4b05a 100644
--- a/src/intel/common/gen_decoder.c
+++ b/src/intel/common/gen_decoder.c
@@ -889,10 +889,11 @@ iter_decode_field(struct gen_field_iterator *iter)
memset(&v, 0, sizeof(v));
- v.qw = iter_decode_field_raw(iter);
+ iter->raw_value = iter_decode_field_raw(iter);
const char *enum_name = NULL;
+ v.qw = iter->raw_value;
switch (iter->field->type.kind) {
case GEN_TYPE_UNKNOWN:
case GEN_TYPE_INT: {
diff --git a/src/intel/common/gen_decoder.h b/src/intel/common/gen_decoder.h
index 37eebd7fcee..fe3cf273ed6 100644
--- a/src/intel/common/gen_decoder.h
+++ b/src/intel/common/gen_decoder.h
@@ -67,6 +67,7 @@ struct gen_field_iterator {
struct gen_group *group;
char name[128];
char value[128];
+ uint64_t raw_value;
struct gen_group *struct_desc;
const uint32_t *p;
int p_bit; /**< bit offset into p */