diff options
author | Lionel Landwerlin <[email protected]> | 2016-10-04 16:19:43 +0100 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2016-10-08 02:17:03 +0100 |
commit | 63a366a8813fec3836213cfd5ab006add332ec84 (patch) | |
tree | 1a063ce5fcdaa7bb449c05bedb02ed6ec3894cab /src/intel/tools/decoder.h | |
parent | 4d7d9825f34a31368e63c493c28d57c8f84a984c (diff) |
intel: aubinator: generate a standalone binary
Embed the xml files into the binary, so aubinator can be used from any
location.
v2: Split generation packing into another patch (Jason)
Check for xxd (Jason)
v3: Fix out of tree builds (Jason)
Generate custom variable name rather than names generated by xxd
(Lionel)
v4: Move generated _xml.h files to genxml/ (Sirisha)
v5: Remove newline from makefile (Jason)
v6: Add comment on gen*_xml.h creation (Jason)
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/tools/decoder.h')
-rw-r--r-- | src/intel/tools/decoder.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intel/tools/decoder.h b/src/intel/tools/decoder.h index f688ba59e8b..5bea9b957f6 100644 --- a/src/intel/tools/decoder.h +++ b/src/intel/tools/decoder.h @@ -26,6 +26,8 @@ #include <stdint.h> #include <stdbool.h> +#include "common/gen_device_info.h" + struct gen_spec; struct gen_group; struct gen_field; @@ -36,7 +38,7 @@ static inline uint32_t gen_make_gen(uint32_t major, uint32_t minor) } struct gen_group *gen_spec_find_struct(struct gen_spec *spec, const char *name); -struct gen_spec *gen_spec_load(const char *filename); +struct gen_spec *gen_spec_load(const struct gen_device_info *devinfo); uint32_t gen_spec_get_gen(struct gen_spec *spec); struct gen_group *gen_spec_find_instruction(struct gen_spec *spec, const uint32_t *p); struct gen_group *gen_spec_find_register(struct gen_spec *spec, uint32_t offset); |