summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_disasm_info.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-11-17 17:27:55 -0800
committerJason Ekstrand <[email protected]>2017-11-17 21:51:16 -0800
commit1eab327ba7184fde6597f4ae061fb408ff41e93b (patch)
treeccb2ef55b253f8f47af35b0fa06e10efd2790383 /src/intel/compiler/brw_disasm_info.h
parent0a6a137eb27129e17298cfe9dd620205588ee4f6 (diff)
i965: Stop including brw_cfg.h in brw_disasm_info.h
The brw_disasm_info header is included by certain tools in order to get shader assembly from binaries so it's a semi-external header. Including brw_cfg.h also pulls in brw_shader.h so you end up getting quite a bit of our back-end compiler internals. Instead, make the couple of forward declarations we need and make the header more stand-alone. This fixes the meson build. Reviewed-by: Matt Turner <[email protected]> Fixes: 4f82b17287194ca7d10816f6cfe4712a3e0a03fc
Diffstat (limited to 'src/intel/compiler/brw_disasm_info.h')
-rw-r--r--src/intel/compiler/brw_disasm_info.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_disasm_info.h b/src/intel/compiler/brw_disasm_info.h
index 638b37911d3..b8826e68175 100644
--- a/src/intel/compiler/brw_disasm_info.h
+++ b/src/intel/compiler/brw_disasm_info.h
@@ -24,12 +24,16 @@
#ifndef _INTEL_ASM_ANNOTATION_H
#define _INTEL_ASM_ANNOTATION_H
-#include "brw_cfg.h"
+#include "compiler/glsl/list.h"
#ifdef __cplusplus
extern "C" {
#endif
+struct cfg_t;
+struct backend_instruction;
+struct gen_device_info;
+
struct inst_group {
struct exec_node link;