i965: Reduce cross-pollination between the DRI driver and compiler

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Jason Ekstrand 2017-03-01 08:58:43 -08:00
parent a2195e561a
commit 8048c1953c
57 changed files with 34 additions and 52 deletions

View 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"

View file

@ -23,7 +23,6 @@
#include <stdlib.h>
#include "brw_context.h"
#include "brw_inst.h"
#include "brw_eu.h"

View 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"

View file

@ -37,7 +37,6 @@
#include "brw_defines.h"
#include "brw_context.h"
#include "brw_eu.h"
#include "brw_clip.h"

View file

@ -37,7 +37,6 @@
#include "brw_defines.h"
#include "brw_context.h"
#include "brw_eu.h"
#include "brw_clip.h"

View 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 )

View file

@ -37,7 +37,6 @@
#include "brw_defines.h"
#include "brw_context.h"
#include "brw_eu.h"
#include "brw_clip.h"

View file

@ -38,7 +38,6 @@
#include "brw_defines.h"
#include "brw_context.h"
#include "brw_eu.h"
#include "brw_clip.h"

View 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"

View 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"

View 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"

View 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) \

View 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"

View 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"

View file

@ -30,9 +30,10 @@
*/
#include "brw_context.h"
#include "brw_defines.h"
#include "brw_eu.h"
#include "brw_shader.h"
#include "intel_debug.h"
#include "util/ralloc.h"

View file

@ -72,9 +72,10 @@
* 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] = {

View file

@ -30,7 +30,6 @@
*/
#include "brw_context.h"
#include "brw_defines.h"
#include "brw_eu.h"

View file

@ -30,7 +30,6 @@
*/
#include "brw_context.h"
#include "brw_defines.h"
#include "brw_eu.h"

View 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"

View file

@ -38,7 +38,6 @@
#include "brw_defines.h"
#include "brw_context.h"
#include "brw_eu.h"
#include "brw_ff_gs.h"
/**

View 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"

View file

@ -27,7 +27,6 @@
#include "brw_ir_fs.h"
#include "brw_shader.h"
#include "brw_context.h"
namespace brw {
/**

View 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 {

View 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"

View 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" {

View 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)

View file

@ -26,7 +26,6 @@
#define BRW_IR_VEC4_H
#include "brw_shader.h"
#include "brw_context.h"
namespace brw {

View 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"

View 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"

View 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

View 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"

View file

@ -47,11 +47,11 @@
#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

View 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"

View 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"

View file

@ -21,13 +21,14 @@
* 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)

View 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

View 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[] = {

View 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"

View 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"

View 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"

View 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)

View file

@ -27,7 +27,6 @@
#include "brw_ir_vec4.h"
#include "brw_ir_allocator.h"
#include "brw_context.h"
namespace brw {
/**

View file

@ -24,6 +24,7 @@
#include "brw_cfg.h"
#include "brw_eu.h"
#include "brw_program.h"
#include "intel_debug.h"
using namespace brw;

View file

@ -31,6 +31,7 @@
#include "gen6_gs_visitor.h"
#include "brw_fs.h"
#include "brw_nir.h"
#include "intel_debug.h"
namespace brw {

View file

@ -30,6 +30,7 @@
#include "brw_nir.h"
#include "brw_vec4_tcs.h"
#include "brw_fs.h"
#include "intel_debug.h"
namespace brw {

View file

@ -29,6 +29,7 @@
#include "brw_vec4_tes.h"
#include "brw_cfg.h"
#include "intel_debug.h"
namespace brw {

View file

@ -23,7 +23,7 @@
#include "brw_vec4_vs.h"
#include "intel_debug.h"
namespace brw {

View 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" {

View 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)

View 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"

View file

@ -36,7 +36,6 @@
#include <stdbool.h>
#include "brw_context.h"
#include "brw_eu.h"
#ifdef __cplusplus
extern "C" {

View file

@ -23,10 +23,9 @@
#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"

View file

@ -24,6 +24,9 @@
*/
#pragma once
#include <stdint.h>
#include "compiler/shader_enums.h"
#ifdef __cplusplus
extern "C" {
#endif

View 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"

View 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

View file

@ -23,7 +23,6 @@
#include <gtest/gtest.h>
#include "brw_vec4.h"
#include "brw_vs.h"
#include "program/program.h"
using namespace brw;

View file

@ -23,7 +23,6 @@
#include <gtest/gtest.h>
#include "brw_vec4.h"
#include "brw_vs.h"
#include "program/program.h"
using namespace brw;