intel: decoder: document when fields should be used
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 1 May 2018 21:18:11 +0000 (22:18 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 2 May 2018 16:10:37 +0000 (17:10 +0100)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/common/gen_decoder.h

index 7d3bedca5b52c04cf963e8ffbf43e105503d136e..8324ff95696df926e03ab15e0cf12956010e221c 100644 (file)
@@ -103,7 +103,7 @@ struct gen_group {
    uint32_t dw_length;
    uint32_t group_offset, group_count;
    uint32_t group_size;
-   bool variable;
+   bool variable; /* <group> specific */
    bool fixed_length; /* True for <struct> & <register> */
 
    struct gen_group *parent;
@@ -112,8 +112,7 @@ struct gen_group {
    uint32_t opcode_mask;
    uint32_t opcode;
 
-   /* Register specific */
-   uint32_t register_offset;
+   uint32_t register_offset; /* <register> specific */
 };
 
 struct gen_value {