intel: Add a INTEL_DEBUG=color option.
[mesa.git] / src / intel / tools / decoder.h
index 7b14ef4a64728eb38b30c45a37291e4510483d2a..4352dea9679b66f3dd20a973b99ffc83d02b6810 100644 (file)
@@ -54,7 +54,9 @@ struct gen_field_iterator {
    struct gen_group *group;
    const char *name;
    char value[128];
+   struct gen_group *struct_desc;
    const uint32_t *p;
+   int dword; /**< current field starts at &p[dword] */
    int i;
    bool print_colors;
 };
@@ -128,4 +130,9 @@ void gen_field_iterator_init(struct gen_field_iterator *iter,
 
 bool gen_field_iterator_next(struct gen_field_iterator *iter);
 
+void gen_print_group(FILE *out,
+                     struct gen_group *group,
+                     uint64_t offset, const uint32_t *p,
+                     int starting_dword, bool color);
+
 #endif /* DECODER_H */