[Mesa-dev] [PATCH 3/7] intel: decoder: reorder iterator init function

Lionel Landwerlin lionel.g.landwerlin at intel.com
Thu Aug 3 14:37:41 UTC 2017


Making the next change more readable.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
 src/intel/common/gen_decoder.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c
index e32d4190235..a30b7f28aab 100644
--- a/src/intel/common/gen_decoder.c
+++ b/src/intel/common/gen_decoder.c
@@ -771,20 +771,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)
 {
@@ -950,6 +936,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,
-- 
2.13.3



More information about the mesa-dev mailing list