summaryrefslogtreecommitdiffstats
path: root/src/intel/tools/decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/tools/decoder.h')
-rw-r--r--src/intel/tools/decoder.h4
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);