From: Lionel Landwerlin Date: Fri, 22 Sep 2017 17:00:25 +0000 (+0100) Subject: intel: common: expose gen_spec fields X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=957a6eea7a674205c9990de1a682a19a94f9b7f2;p=mesa.git intel: common: expose gen_spec fields Signed-off-by: Lionel Landwerlin Reviewed-by: Scott D Phillips --- diff --git a/src/intel/common/gen_decoder.c b/src/intel/common/gen_decoder.c index 3aeaece2ae5..99a453bf5b3 100644 --- a/src/intel/common/gen_decoder.c +++ b/src/intel/common/gen_decoder.c @@ -39,19 +39,6 @@ #define XML_BUFFER_SIZE 4096 -struct gen_spec { - uint32_t gen; - - int ncommands; - struct gen_group *commands[256]; - int nstructs; - struct gen_group *structs[256]; - int nregisters; - struct gen_group *registers[256]; - int nenums; - struct gen_enum *enums[256]; -}; - struct location { const char *filename; int line_number; diff --git a/src/intel/common/gen_decoder.h b/src/intel/common/gen_decoder.h index 12d4551a127..ba9a19b55fe 100644 --- a/src/intel/common/gen_decoder.h +++ b/src/intel/common/gen_decoder.h @@ -68,6 +68,19 @@ struct gen_field_iterator { bool print_colors; }; +struct gen_spec { + uint32_t gen; + + uint32_t ncommands; + struct gen_group *commands[256]; + uint32_t nstructs; + struct gen_group *structs[256]; + uint32_t nregisters; + struct gen_group *registers[256]; + uint32_t nenums; + struct gen_enum *enums[256]; +}; + struct gen_group { struct gen_spec *spec; char *name;