summaryrefslogtreecommitdiffstats
path: root/src/intel/common/gen_decoder.c
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2017-08-02 22:30:14 +0100
committerLionel Landwerlin <[email protected]>2017-11-01 13:19:20 +0000
commit0698318d1a8f53d7df0fb51dddf34bb01b4fb868 (patch)
tree1f51c58dfb32582fb6a209c9ff06feae7cd3722d /src/intel/common/gen_decoder.c
parent1b369acdd83c853eede3e484251a42980f1f7b30 (diff)
intel: decoder: reorder iterator init function
Making the next change more readable. 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.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c
index acd0908acb3..bd3e139404c 100644
--- a/src/intel/common/gen_decoder.c
+++ b/src/intel/common/gen_decoder.c
@@ -758,20 +758,6 @@ gen_group_get_length(struct gen_group *group, const uint32_t *p)
return -1;
}
-void
-gen_field_iterator_init(struct gen_field_iterator *iter,
- struct gen_group *group,
- const uint32_t *p,
- bool print_colors)
-{
- memset(iter, 0, sizeof(*iter));
-
- iter->group = group;
- iter->field = group->fields;
- iter->p = p;
- iter->print_colors = print_colors;
-}
-
static const char *
gen_get_enum_name(struct gen_enum *e, uint64_t value)
{
@@ -941,6 +927,20 @@ gen_field_iterator_next(struct gen_field_iterator *iter)
return true;
}
+void
+gen_field_iterator_init(struct gen_field_iterator *iter,
+ struct gen_group *group,
+ const uint32_t *p,
+ bool print_colors)
+{
+ memset(iter, 0, sizeof(*iter));
+
+ iter->group = group;
+ iter->field = group->fields;
+ iter->p = p;
+ iter->print_colors = print_colors;
+}
+
static void
print_dword_header(FILE *outfile,
struct gen_field_iterator *iter,