[Mesa-dev] [PATCH 06/30] i965/ir: Reverse inclusion dependency between brw_cfg.h and brw_shader.h.
Francisco Jerez
currojerez at riseup.net
Mon Mar 14 03:47:10 UTC 2016
This reflects the natural dependency relationship between brw_cfg.h
and brw_shader.h. brw_cfg.h only requires the base IR definitions
which are now part of a separate header.
---
src/mesa/drivers/dri/i965/brw_cfg.cpp | 1 +
src/mesa/drivers/dri/i965/brw_cfg.h | 5 +++--
src/mesa/drivers/dri/i965/brw_predicated_break.cpp | 2 +-
src/mesa/drivers/dri/i965/brw_shader.h | 4 +---
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_cfg.cpp b/src/mesa/drivers/dri/i965/brw_cfg.cpp
index 5d46615..4fcee72 100644
--- a/src/mesa/drivers/dri/i965/brw_cfg.cpp
+++ b/src/mesa/drivers/dri/i965/brw_cfg.cpp
@@ -26,6 +26,7 @@
*/
#include "brw_cfg.h"
+#include "brw_shader.h"
/** @file brw_cfg.cpp
*
diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h
index a2ca6b1..0813798 100644
--- a/src/mesa/drivers/dri/i965/brw_cfg.h
+++ b/src/mesa/drivers/dri/i965/brw_cfg.h
@@ -28,7 +28,7 @@
#ifndef BRW_CFG_H
#define BRW_CFG_H
-#include "brw_shader.h"
+#include "brw_ir.h"
struct bblock_t;
@@ -46,7 +46,8 @@ struct bblock_link {
struct bblock_t *block;
};
-struct backend_instruction;
+struct backend_shader;
+struct cfg_t;
struct bblock_t {
#ifdef __cplusplus
diff --git a/src/mesa/drivers/dri/i965/brw_predicated_break.cpp b/src/mesa/drivers/dri/i965/brw_predicated_break.cpp
index 607715d..8aeaa24 100644
--- a/src/mesa/drivers/dri/i965/brw_predicated_break.cpp
+++ b/src/mesa/drivers/dri/i965/brw_predicated_break.cpp
@@ -21,7 +21,7 @@
* IN THE SOFTWARE.
*/
-#include "brw_cfg.h"
+#include "brw_shader.h"
using namespace brw;
diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h
index 3f38dc1..81d3f96 100644
--- a/src/mesa/drivers/dri/i965/brw_shader.h
+++ b/src/mesa/drivers/dri/i965/brw_shader.h
@@ -27,9 +27,7 @@
#include "brw_reg.h"
#include "brw_defines.h"
#include "brw_context.h"
-#include "brw_ir.h"
-
-struct cfg_t;
+#include "brw_cfg.h"
#ifdef __cplusplus
#include "brw_ir_allocator.h"
--
2.7.0
More information about the mesa-dev
mailing list