Mesa (master): intel: decoder: document when fields should be used

Lionel Landwerlin llandwerlin at kemper.freedesktop.org
Wed May 2 16:12:50 UTC 2018


Module: Mesa
Branch: master
Commit: 467430ddcc85be34bd79a3709b33e4510e3c9370
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=467430ddcc85be34bd79a3709b33e4510e3c9370

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Tue May  1 22:18:11 2018 +0100

intel: decoder: document when fields should be used

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 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 7d3bedca5b..8324ff9569 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 {




More information about the mesa-commit mailing list