i965: Reduce cross-pollination between the DRI driver and compiler
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Mar 2017 16:58:43 +0000 (08:58 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Mar 2017 00:14:03 +0000 (16:14 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
57 files changed:
src/intel/blorp/blorp_blit.c
src/intel/tools/disasm.c
src/mesa/drivers/dri/i965/brw_clip.c
src/mesa/drivers/dri/i965/brw_clip_line.c
src/mesa/drivers/dri/i965/brw_clip_point.c
src/mesa/drivers/dri/i965/brw_clip_tri.c
src/mesa/drivers/dri/i965/brw_clip_unfilled.c
src/mesa/drivers/dri/i965/brw_clip_util.c
src/mesa/drivers/dri/i965/brw_compiler.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_cs.c
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_disasm.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_eu.c
src/mesa/drivers/dri/i965/brw_eu_compact.c
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_eu_util.c
src/mesa/drivers/dri/i965/brw_ff_gs.c
src/mesa/drivers/dri/i965/brw_ff_gs_emit.c
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_builder.h
src/mesa/drivers/dri/i965/brw_fs_surface_builder.h
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_inst.h
src/mesa/drivers/dri/i965/brw_interpolation_map.c
src/mesa/drivers/dri/i965/brw_ir_vec4.h
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/brw_nir.c
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/i965/brw_program_cache.c
src/mesa/drivers/dri/i965/brw_sf.c
src/mesa/drivers/dri/i965/brw_sf_emit.c
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_shader.h
src/mesa/drivers/dri/i965/brw_state_dump.c
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/brw_tcs.c
src/mesa/drivers/dri/i965/brw_tes.c
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_builder.h
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_tcs.cpp
src/mesa/drivers/dri/i965/brw_vec4_tes.cpp
src/mesa/drivers/dri/i965/brw_vec4_vs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vs.h
src/mesa/drivers/dri/i965/brw_vue_map.c
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/drivers/dri/i965/gen7_cs_state.c
src/mesa/drivers/dri/i965/intel_debug.h
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/i965/test_eu_compact.c
src/mesa/drivers/dri/i965/test_vec4_copy_propagation.cpp
src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp

index bb73e51..0cc5a84 100644 (file)
@@ -24,7 +24,6 @@
 #include "compiler/nir/nir_builder.h"
 
 #include "blorp_priv.h"
-#include "brw_meta_util.h"
 
 /* header-only include needed for _mesa_unorm_to_float and friends. */
 #include "mesa/main/format_utils.h"
index 4ac7b90..96c6ce2 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <stdlib.h>
 
-#include "brw_context.h"
 #include "brw_inst.h"
 #include "brw_eu.h"
 
index e375674..4187207 100644 (file)
@@ -36,7 +36,6 @@
 
 #include "brw_defines.h"
 #include "brw_context.h"
-#include "brw_eu.h"
 #include "brw_util.h"
 #include "brw_state.h"
 #include "brw_clip.h"
index f9cabd2..788dc96 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "brw_defines.h"
 #include "brw_context.h"
-#include "brw_eu.h"
 #include "brw_clip.h"
 
 
index 5cf2f5e..bdbf969 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "brw_defines.h"
 #include "brw_context.h"
-#include "brw_eu.h"
 #include "brw_clip.h"
 
 
index 52402e3..d98e1cc 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "brw_defines.h"
 #include "brw_context.h"
-#include "brw_eu.h"
 #include "brw_clip.h"
 
 static void release_tmps( struct brw_clip_compile *c )
index 7c06857..65ccf33 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "brw_defines.h"
 #include "brw_context.h"
-#include "brw_eu.h"
 #include "brw_clip.h"
 
 
index 4f1b0fd..e0fdd3d 100644 (file)
@@ -38,7 +38,6 @@
 
 #include "brw_defines.h"
 #include "brw_context.h"
-#include "brw_eu.h"
 #include "brw_clip.h"
 
 
index 18ca444..f414099 100644 (file)
@@ -22,8 +22,8 @@
  */
 
 #include "brw_compiler.h"
-#include "brw_context.h"
 #include "brw_shader.h"
+#include "intel_debug.h"
 #include "compiler/nir/nir.h"
 #include "main/errors.h"
 #include "util/debug.h"
index fb97743..3688ba4 100644 (file)
@@ -53,7 +53,6 @@
 #include "brw_context.h"
 #include "brw_defines.h"
 #include "brw_blorp.h"
-#include "brw_compiler.h"
 #include "brw_draw.h"
 #include "brw_state.h"
 
index 16b7945..1653ad5 100644 (file)
@@ -24,9 +24,7 @@
 #include "util/ralloc.h"
 #include "brw_context.h"
 #include "brw_cs.h"
-#include "brw_eu.h"
 #include "brw_wm.h"
-#include "brw_shader.h"
 #include "intel_mipmap_tree.h"
 #include "brw_state.h"
 #include "intel_batchbuffer.h"
index f443cac..b08c40c 100644 (file)
@@ -29,6 +29,8 @@
   *   Keith Whitwell <keithw@vmware.com>
   */
 
+#include "util/macros.h"
+
 #define INTEL_MASK(high, low) (((1u<<((high)-(low)+1))-1)<<(low))
 /* Using the GNU statement expression extension */
 #define SET_FIELD(value, field)                                         \
index cd553b3..6afbb24 100644 (file)
@@ -24,8 +24,9 @@
 #include <string.h>
 #include <stdarg.h>
 
-#include "brw_context.h"
 #include "brw_defines.h"
+#include "brw_inst.h"
+#include "brw_shader.h"
 #include "brw_reg.h"
 #include "brw_inst.h"
 #include "brw_eu.h"
index 940ce70..e3aaeb8 100644 (file)
@@ -45,7 +45,6 @@
 #include "brw_defines.h"
 #include "brw_context.h"
 #include "brw_state.h"
-#include "brw_vs.h"
 
 #include "intel_batchbuffer.h"
 #include "intel_buffers.h"
index 6a422bb..e4cbf53 100644 (file)
   */
 
 
-#include "brw_context.h"
 #include "brw_defines.h"
 #include "brw_eu.h"
+#include "brw_shader.h"
+#include "intel_debug.h"
 
 #include "util/ralloc.h"
 
index 68321e7..778fb6a 100644 (file)
  * Gen 8 adds support for compacting 3-src instructions.
  */
 
-#include "brw_context.h"
 #include "brw_eu.h"
+#include "brw_shader.h"
 #include "intel_asm_annotation.h"
+#include "intel_debug.h"
 #include "util/u_atomic.h" /* for p_atomic_cmpxchg */
 
 static const uint32_t g45_control_index_table[32] = {
index f4bec33..be4f46f 100644 (file)
@@ -30,7 +30,6 @@
   */
 
 
-#include "brw_context.h"
 #include "brw_defines.h"
 #include "brw_eu.h"
 
index f74e3fe..4de0db4 100644 (file)
@@ -30,7 +30,6 @@
   */
 
 
-#include "brw_context.h"
 #include "brw_defines.h"
 #include "brw_eu.h"
 
index 0316d0f..b7b4b71 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "brw_defines.h"
 #include "brw_context.h"
-#include "brw_eu.h"
 #include "brw_util.h"
 #include "brw_state.h"
 #include "brw_ff_gs.h"
index 7a3e62a..6941268 100644 (file)
@@ -38,7 +38,6 @@
 
 #include "brw_defines.h"
 #include "brw_context.h"
-#include "brw_eu.h"
 #include "brw_ff_gs.h"
 
 /**
index 67bdb7a..f577386 100644 (file)
@@ -29,7 +29,6 @@
  */
 
 #include "main/macros.h"
-#include "brw_context.h"
 #include "brw_eu.h"
 #include "brw_fs.h"
 #include "brw_cs.h"
@@ -38,6 +37,7 @@
 #include "brw_cfg.h"
 #include "brw_program.h"
 #include "brw_dead_control_flow.h"
+#include "intel_debug.h"
 #include "compiler/glsl_types.h"
 #include "compiler/nir/nir_builder.h"
 #include "program/prog_parameter.h"
index e8cbb9c..87394bc 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "brw_ir_fs.h"
 #include "brw_shader.h"
-#include "brw_context.h"
 
 namespace brw {
    /**
index 17318ce..32b56d3 100644 (file)
@@ -26,7 +26,6 @@
 #define BRW_FS_SURFACE_BUILDER_H
 
 #include "brw_fs_builder.h"
-#include "brw_context.h"
 
 namespace brw {
    namespace surface_access {
index 2996203..412ea97 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "brw_gs.h"
 #include "brw_context.h"
-#include "brw_vec4_gs_visitor.h"
 #include "brw_state.h"
 #include "brw_ff_gs.h"
 #include "brw_nir.h"
index d6a2105..e73093e 100644 (file)
@@ -33,7 +33,8 @@
 
 #include <stdint.h>
 
-#include "brw_context.h"
+#include "brw_defines.h"
+#include "common/gen_device_info.h"
 
 #ifdef __cplusplus
 extern "C" {
index 8d53e52..7b9f58e 100644 (file)
@@ -22,7 +22,6 @@
  */
 
 #include "brw_compiler.h"
-#include "brw_context.h"
 #include "compiler/nir/nir.h"
 
 static char const *get_qual_name(int mode)
index 57fc6be..bd026eb 100644 (file)
@@ -26,7 +26,6 @@
 #define BRW_IR_VEC4_H
 
 #include "brw_shader.h"
-#include "brw_context.h"
 
 namespace brw {
 
index 261d886..8611d48 100644 (file)
@@ -22,8 +22,6 @@
  */
 
 #include "brw_context.h"
-#include "brw_shader.h"
-#include "brw_fs.h"
 #include "brw_nir.h"
 #include "brw_program.h"
 #include "compiler/glsl/ir.h"
index 7470349..15e290a 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "brw_nir.h"
 #include "brw_shader.h"
+#include "intel_debug.h"
 #include "compiler/glsl_types.h"
 #include "compiler/nir/nir_builder.h"
 
index 9ebd7d8..024cf79 100644 (file)
@@ -21,8 +21,8 @@
  * IN THE SOFTWARE.
  */
 
-#include "brw_shader.h"
 #include "brw_nir.h"
+#include "brw_shader.h"
 #include "compiler/glsl/ir_uniform.h"
 
 static void
index 8f89849..dbc39e5 100644 (file)
@@ -43,7 +43,6 @@
 
 #include "brw_program.h"
 #include "brw_context.h"
-#include "brw_shader.h"
 #include "brw_nir.h"
 #include "intel_batchbuffer.h"
 
index a9a4c92..0ff4683 100644 (file)
 #include "main/imports.h"
 #include "intel_batchbuffer.h"
 #include "brw_state.h"
-#include "brw_vs.h"
 #include "brw_wm.h"
 #include "brw_gs.h"
 #include "brw_cs.h"
 #include "brw_program.h"
+#include "brw_eu.h"
 
 #define FILE_DEBUG_FLAG DEBUG_STATE
 
index 468050a..ff15c97 100644 (file)
@@ -39,7 +39,6 @@
 
 #include "brw_defines.h"
 #include "brw_context.h"
-#include "brw_eu.h"
 #include "brw_util.h"
 #include "brw_sf.h"
 #include "brw_state.h"
index 5f31fa5..dc90503 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "brw_defines.h"
 #include "brw_context.h"
-#include "brw_eu.h"
 #include "brw_util.h"
 #include "brw_sf.h"
 
index 53576da..7522a93 100644 (file)
  * IN THE SOFTWARE.
  */
 
-#include "brw_context.h"
 #include "brw_cfg.h"
 #include "brw_eu.h"
 #include "brw_fs.h"
 #include "brw_nir.h"
 #include "brw_vec4_tes.h"
+#include "intel_debug.h"
 #include "main/uniforms.h"
+#include "util/macros.h"
 
 enum brw_reg_type
 brw_type_for_base_type(const struct glsl_type *type)
index 939a45a..5f53c74 100644 (file)
@@ -25,8 +25,9 @@
 
 #include <stdint.h>
 #include "brw_reg.h"
+#include "brw_compiler.h"
 #include "brw_defines.h"
-#include "brw_context.h"
+#include "brw_inst.h"
 #include "compiler/nir/nir.h"
 
 #ifdef __cplusplus
index 13e76ec..bc9b9a3 100644 (file)
@@ -32,7 +32,6 @@
 
 #include "brw_context.h"
 #include "brw_defines.h"
-#include "brw_eu.h"
 #include "brw_state.h"
 
 static const char *sampler_mip_filter[] = {
index 52b74a7..b3bd0ce 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "brw_context.h"
 #include "brw_state.h"
+#include "brw_program.h"
 #include "drivers/common/meta.h"
 #include "intel_batchbuffer.h"
 #include "intel_buffers.h"
index 64bfc40..2bef1be 100644 (file)
@@ -30,7 +30,6 @@
 #include "brw_context.h"
 #include "brw_nir.h"
 #include "brw_program.h"
-#include "brw_shader.h"
 #include "brw_state.h"
 #include "program/prog_parameter.h"
 #include "nir_builder.h"
index 3da5357..8313d38 100644 (file)
@@ -30,7 +30,6 @@
 #include "brw_context.h"
 #include "brw_nir.h"
 #include "brw_program.h"
-#include "brw_shader.h"
 #include "brw_state.h"
 #include "program/prog_parameter.h"
 
index 14a4f85..95199fb 100644 (file)
@@ -29,6 +29,7 @@
 #include "brw_vec4_live_variables.h"
 #include "brw_vec4_vs.h"
 #include "brw_dead_control_flow.h"
+#include "intel_debug.h"
 #include "program/prog_parameter.h"
 
 #define MAX_INSTRUCTION (1 << 30)
index 8352542..4c3efe8 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "brw_ir_vec4.h"
 #include "brw_ir_allocator.h"
-#include "brw_context.h"
 
 namespace brw {
    /**
index b2ebdb3..83f5711 100644 (file)
@@ -24,6 +24,7 @@
 #include "brw_cfg.h"
 #include "brw_eu.h"
 #include "brw_program.h"
+#include "intel_debug.h"
 
 using namespace brw;
 
index 0220068..3a8bc77 100644 (file)
@@ -31,6 +31,7 @@
 #include "gen6_gs_visitor.h"
 #include "brw_fs.h"
 #include "brw_nir.h"
+#include "intel_debug.h"
 
 namespace brw {
 
index 3ea9010..d27074c 100644 (file)
@@ -30,6 +30,7 @@
 #include "brw_nir.h"
 #include "brw_vec4_tcs.h"
 #include "brw_fs.h"
+#include "intel_debug.h"
 
 namespace brw {
 
index ae6d99b..0c05ab0 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "brw_vec4_tes.h"
 #include "brw_cfg.h"
+#include "intel_debug.h"
 
 namespace brw {
 
index 98b0bf1..6e052d7 100644 (file)
@@ -33,8 +33,7 @@
 #ifndef BRW_VS_H
 #define BRW_VS_H
 
-
-#include "brw_vec4.h"
+#include "brw_context.h"
 
 #ifdef __cplusplus
 extern "C" {
index 178a4e5..8912068 100644 (file)
@@ -40,7 +40,8 @@
  */
 
 
-#include "brw_context.h"
+#include "brw_compiler.h"
+#include "intel_debug.h"
 
 static inline void
 assign_vue_slot(struct brw_vue_map *vue_map, int varying, int slot)
index dd3e201..c1f207e 100644 (file)
@@ -26,7 +26,6 @@
 #include "brw_context.h"
 #include "brw_wm.h"
 #include "brw_state.h"
-#include "brw_shader.h"
 #include "main/enums.h"
 #include "main/formats.h"
 #include "main/fbobject.h"
index d1bf868..613172a 100644 (file)
@@ -36,7 +36,6 @@
 #include <stdbool.h>
 
 #include "brw_context.h"
-#include "brw_eu.h"
 
 #ifdef __cplusplus
 extern "C" {
index bae4fd2..dc3cc66 100644 (file)
 
 #include "util/ralloc.h"
 #include "brw_context.h"
+#include "brw_defines.h"
 #include "brw_cs.h"
-#include "brw_eu.h"
 #include "brw_wm.h"
-#include "brw_shader.h"
 #include "intel_mipmap_tree.h"
 #include "intel_batchbuffer.h"
 #include "brw_state.h"
index e8e329b..8c81c1d 100644 (file)
@@ -24,6 +24,9 @@
  */
 #pragma once
 
+#include <stdint.h>
+#include "compiler/shader_enums.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
index d6a88a1..f98431f 100644 (file)
@@ -35,7 +35,7 @@
 #include "main/version.h"
 #include "swrast/s_renderbuffer.h"
 #include "util/ralloc.h"
-#include "brw_shader.h"
+#include "brw_defines.h"
 #include "compiler/nir/nir.h"
 
 #include "utils.h"
index 874412c..d745361 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdio.h>
 #include <stdbool.h>
 #include "util/ralloc.h"
-#include "brw_context.h"
 #include "brw_eu.h"
 
 static bool
index b0eaf5c..f4f91d8 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <gtest/gtest.h>
 #include "brw_vec4.h"
-#include "brw_vs.h"
 #include "program/program.h"
 
 using namespace brw;
index 81d1735..a3dbb0a 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <gtest/gtest.h>
 #include "brw_vec4.h"
-#include "brw_vs.h"
 #include "program/program.h"
 
 using namespace brw;