[Mesa-dev] [PATCH 3/5] intel: decoder: document when fields should be used

Lionel Landwerlin lionel.g.landwerlin at intel.com
Tue May 1 23:43:04 UTC 2018


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

diff --git a/src/intel/common/gen_decoder.h b/src/intel/common/gen_decoder.h
index 7d3bedca5b5..8324ff95696 100644
--- a/src/intel/common/gen_decoder.h
+++ b/src/intel/common/gen_decoder.h
@@ -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 {
-- 
2.17.0



More information about the mesa-dev mailing list