i965: Push down inclusion of brw_program.h.
authorMatt Turner <mattst88@gmail.com>
Sun, 22 Nov 2015 23:30:59 +0000 (15:30 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 24 Nov 2015 18:05:33 +0000 (10:05 -0800)
We were including it in headers, which then caused it to be included in
tons of places it wasn't needed.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
18 files changed:
src/mesa/drivers/dri/i965/brw_cs.c
src/mesa/drivers/dri/i965/brw_cs.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_gs.h
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_program.h
src/mesa/drivers/dri/i965/brw_state_cache.c
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm.h

index 263d224e8829357273d862201c3702796add825c..a34c32047ff351e3efa1cdfd1658bb4b6daaecc0 100644 (file)
@@ -31,6 +31,7 @@
 #include "brw_state.h"
 #include "intel_batchbuffer.h"
 #include "brw_nir.h"
+#include "brw_program.h"
 
 static void
 assign_cs_binding_table_offsets(const struct brw_device_info *devinfo,
index 899e340f14e181841190b07890baf8c708bda523..9ce39fb18ac90e743e89371980e348d5c2616386 100644 (file)
@@ -25,8 +25,6 @@
 #ifndef BRW_CS_H
 #define BRW_CS_H
 
-#include "brw_program.h"
-
 #ifdef __cplusplus
 extern "C" {
 #endif
index 9ea6beb93c1e0b29f3f24443a94076b2acf1fca6..b052bb9a2cbc1caf0d5b71349be9452c628df071 100644 (file)
@@ -46,6 +46,7 @@
 #include "brw_nir.h"
 #include "brw_vec4_gs_visitor.h"
 #include "brw_cfg.h"
+#include "brw_program.h"
 #include "brw_dead_control_flow.h"
 #include "main/uniforms.h"
 #include "brw_fs_live_variables.h"
index 6493e0532741f3ad1cf89a4254f159517658fe63..48cb13d276759fe7706b4fc1698ef768a6e91ba9 100644 (file)
@@ -32,6 +32,7 @@
 #include "brw_eu.h"
 #include "brw_fs.h"
 #include "brw_cfg.h"
+#include "brw_program.h"
 
 static enum brw_reg_file
 brw_file_from_reg(fs_reg *reg)
index 1e39b398187027be111e160dc74d419ae749ac4f..993367ec7e0ed1647121086af4f392c1cf50b7f6 100644 (file)
@@ -30,6 +30,7 @@
 #include "brw_fs_surface_builder.h"
 #include "brw_vec4_gs_visitor.h"
 #include "brw_nir.h"
+#include "brw_program.h"
 
 using namespace brw;
 using namespace brw::surface_access;
index 149b43ba05552a4315651ae3d1b0641cb97dc577..136be6837e4f93895b05b3833b17f57513c1cb59 100644 (file)
@@ -33,6 +33,7 @@
 #include "brw_state.h"
 #include "brw_ff_gs.h"
 #include "brw_nir.h"
+#include "brw_program.h"
 
 static void
 assign_gs_binding_table_offsets(const struct brw_device_info *devinfo,
index 0c49bb688d4842ad46a0ed24a16e07ce3d4c7832..13d6be8029b9ee1d178ff45a68698413b2a090cf 100644 (file)
@@ -27,7 +27,6 @@
 #include <stdbool.h>
 
 #include "brw_context.h"
-#include "brw_program.h"
 
 #ifdef __cplusplus
 extern "C" {
index b3a97476ec65ef8c93480e59707ff7a987c8eea1..db0c22e3283710451efb8f06fd8d8c98a46f5b2a 100644 (file)
@@ -28,6 +28,7 @@
 #include "brw_fs.h"
 #include "brw_cfg.h"
 #include "brw_nir.h"
+#include "brw_program.h"
 #include "glsl/ir_optimization.h"
 #include "glsl/glsl_parser_extras.h"
 #include "main/shaderapi.h"
index f137c8735fbb520025e75bf67c81b034cf7aa885..0c7692e8867580e7e7032ea9e0e7d942f1c2466a 100644 (file)
@@ -41,6 +41,7 @@
 #include "util/ralloc.h"
 #include "glsl/ir.h"
 
+#include "brw_program.h"
 #include "brw_context.h"
 #include "brw_shader.h"
 #include "brw_nir.h"
index f8cf2b062c8813c3a4f6d0b053046a38db59ffcc..339b8e19ec538d3525befff9b890796ac69dec32 100644 (file)
@@ -30,6 +30,8 @@
 extern "C" {
 #endif
 
+struct brw_context;
+
 void brw_setup_tex_for_precompile(struct brw_context *brw,
                                   struct brw_sampler_prog_key_data *tex,
                                   struct gl_program *prog);
index f7c0a2037d944c90dff5a53499067ac73c82e468..cac06fa8918590fe87c37c1847e2247957146ca9 100644 (file)
@@ -51,6 +51,7 @@
 #include "brw_wm.h"
 #include "brw_gs.h"
 #include "brw_cs.h"
+#include "brw_program.h"
 
 #define FILE_DEBUG_FLAG DEBUG_STATE
 
index 3f674326284a3e7d4234e15412cbec91c892bb16..0754bc7f17b9d3a69b5a5c1a6e608d049609da3b 100644 (file)
@@ -28,7 +28,6 @@
 #include "brw_shader.h"
 #include "main/compiler.h"
 #include "program/hash_table.h"
-#include "brw_program.h"
 
 #ifdef __cplusplus
 #include "brw_ir_vec4.h"
index c06fb218aeeae5ab9e1613913a3fe7fbab088827..eeb7a8abe364929197fd059a589782ef4d835559 100644 (file)
@@ -23,6 +23,7 @@
 #include "glsl/glsl_parser_extras.h"
 #include "brw_vec4.h"
 #include "brw_cfg.h"
+#include "brw_program.h"
 
 using namespace brw;
 
index c777acf70a7e183705af6315845b2a8d13f943dd..05de97244237bb98fc7dd48f8571b61b3eabc82c 100644 (file)
@@ -25,6 +25,7 @@
 #include "brw_vec4.h"
 #include "brw_vec4_builder.h"
 #include "brw_vec4_surface_builder.h"
+#include "brw_program.h"
 #include "glsl/ir_uniform.h"
 
 using namespace brw;
index 04ea1775ceb2bf01147a5d1fe7d9da37da3e0a18..cb92b4f1060d1499b59b15b87dee48ddfe184f0c 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "brw_vec4.h"
 #include "brw_cfg.h"
+#include "brw_program.h"
 #include "glsl/ir_uniform.h"
 #include "program/sampler.h"
 
index 7c783f66864abccf82b5988d148f4fe851947503..d45347f7c1d6bff2fd3ed148be1ee37ca8f00132 100644 (file)
@@ -39,6 +39,7 @@
 #include "program/prog_print.h"
 #include "program/prog_parameter.h"
 #include "brw_nir.h"
+#include "brw_program.h"
 
 #include "util/ralloc.h"
 
index 8d9ed3a6c33c17c52f587d1bba88d956b0a12d16..5d0fe82ebf684db2046b95984de00e7521d5ddca 100644 (file)
@@ -36,6 +36,7 @@
 #include "program/program.h"
 #include "intel_mipmap_tree.h"
 #include "brw_nir.h"
+#include "brw_program.h"
 
 #include "util/ralloc.h"
 
index 53a642ee8bbc96ff8850c9fa01e82e0230da2c69..35dfa4c11769aba334513a5b9c79567df7f7a51d 100644 (file)
@@ -38,7 +38,6 @@
 #include "program/prog_instruction.h"
 #include "brw_context.h"
 #include "brw_eu.h"
-#include "brw_program.h"
 
 /* A big lookup table is used to figure out which and how many
  * additional regs will inserted before the main payload in the WM