i965: Move intel_debug.h to intel/common/gen_debug.h
This is shared between the Vulkan and GL drivers as it's a requirement of the back-end compiler. However, it doesn't really belong in the compiler. We rename the file to match the prefix of the other stuff in common and because libdrm defines an intel_debug.h and this avoids a pile of possible name conflicts. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
@@ -7,6 +7,8 @@ BLORP_FILES = \
|
||||
blorp/blorp_priv.h
|
||||
|
||||
COMMON_FILES = \
|
||||
common/gen_debug.c \
|
||||
common/gen_debug.h \
|
||||
common/gen_device_info.c \
|
||||
common/gen_device_info.h \
|
||||
common/gen_l3_config.c \
|
||||
|
@@ -23,14 +23,16 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file intel_debug.c
|
||||
* \file gen_debug.c
|
||||
*
|
||||
* Support for the INTEL_DEBUG environment variable, along with other
|
||||
* miscellaneous debugging code.
|
||||
*/
|
||||
|
||||
#include "brw_context.h"
|
||||
#include "intel_debug.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "common/gen_debug.h"
|
||||
#include "util/macros.h"
|
||||
#include "util/u_atomic.h" /* for p_atomic_cmpxchg */
|
||||
#include "util/debug.h"
|
||||
|
@@ -31,7 +31,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
/**
|
||||
* \file intel_debug.h
|
||||
* \file gen_debug.h
|
||||
*
|
||||
* Basic INTEL_DEBUG environment variable handling. This file defines the
|
||||
* list of debugging flags, as well as some macros for handling them.
|
@@ -98,6 +98,7 @@ EXTRA_DIST = \
|
||||
TEST_LIBS = \
|
||||
libi965_compiler.la \
|
||||
$(I965_PERGEN_LIBS) \
|
||||
$(top_builddir)/src/intel/common/libintel_common.la \
|
||||
$(top_builddir)/src/compiler/nir/libnir.la \
|
||||
$(top_builddir)/src/util/libmesautil.la \
|
||||
$(top_builddir)/src/intel/isl/libisl.la \
|
||||
|
@@ -84,9 +84,7 @@ i965_compiler_FILES = \
|
||||
gen6_gs_visitor.cpp \
|
||||
gen6_gs_visitor.h \
|
||||
intel_asm_annotation.c \
|
||||
intel_asm_annotation.h \
|
||||
intel_debug.c \
|
||||
intel_debug.h
|
||||
intel_asm_annotation.h
|
||||
|
||||
i965_compiler_GENERATED_FILES = \
|
||||
brw_nir_trig_workarounds.c
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#include "brw_meta_util.h"
|
||||
#include "brw_state.h"
|
||||
#include "intel_fbo.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
|
||||
#define FILE_DEBUG_FLAG DEBUG_BLORP
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "brw_compiler.h"
|
||||
#include "brw_shader.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
#include "compiler/nir/nir.h"
|
||||
#include "main/errors.h"
|
||||
#include "util/debug.h"
|
||||
|
@@ -45,7 +45,7 @@
|
||||
|
||||
#include <intel_bufmgr.h>
|
||||
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
#include "intel_screen.h"
|
||||
#include "intel_tex_obj.h"
|
||||
#include "intel_resolve_map.h"
|
||||
|
@@ -33,7 +33,7 @@
|
||||
#include "brw_defines.h"
|
||||
#include "brw_eu.h"
|
||||
#include "brw_shader.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
|
||||
#include "util/ralloc.h"
|
||||
|
||||
|
@@ -75,7 +75,7 @@
|
||||
#include "brw_eu.h"
|
||||
#include "brw_shader.h"
|
||||
#include "intel_asm_annotation.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
#include "util/u_atomic.h" /* for p_atomic_cmpxchg */
|
||||
|
||||
static const uint32_t g45_control_index_table[32] = {
|
||||
|
@@ -37,7 +37,7 @@
|
||||
#include "brw_cfg.h"
|
||||
#include "brw_program.h"
|
||||
#include "brw_dead_control_flow.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
#include "compiler/glsl_types.h"
|
||||
#include "compiler/nir/nir_builder.h"
|
||||
#include "program/prog_parameter.h"
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "brw_nir.h"
|
||||
#include "brw_shader.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
#include "compiler/glsl_types.h"
|
||||
#include "compiler/nir/nir_builder.h"
|
||||
|
||||
|
@@ -26,7 +26,7 @@
|
||||
#include "brw_fs.h"
|
||||
#include "brw_nir.h"
|
||||
#include "brw_vec4_tes.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
#include "main/uniforms.h"
|
||||
#include "util/macros.h"
|
||||
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include "brw_vec4_live_variables.h"
|
||||
#include "brw_vec4_vs.h"
|
||||
#include "brw_dead_control_flow.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
#include "program/prog_parameter.h"
|
||||
|
||||
#define MAX_INSTRUCTION (1 << 30)
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include "brw_cfg.h"
|
||||
#include "brw_eu.h"
|
||||
#include "brw_program.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
|
||||
using namespace brw;
|
||||
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#include "gen6_gs_visitor.h"
|
||||
#include "brw_fs.h"
|
||||
#include "brw_nir.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
|
||||
namespace brw {
|
||||
|
||||
|
@@ -30,7 +30,7 @@
|
||||
#include "brw_nir.h"
|
||||
#include "brw_vec4_tcs.h"
|
||||
#include "brw_fs.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
|
||||
namespace brw {
|
||||
|
||||
|
@@ -29,7 +29,7 @@
|
||||
|
||||
#include "brw_vec4_tes.h"
|
||||
#include "brw_cfg.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
|
||||
namespace brw {
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
#include "brw_vec4_vs.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
|
||||
namespace brw {
|
||||
|
||||
|
@@ -41,7 +41,7 @@
|
||||
|
||||
|
||||
#include "brw_compiler.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
|
||||
static inline void
|
||||
assign_vue_slot(struct brw_vue_map *vue_map, int varying, int slot)
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "brw_cfg.h"
|
||||
#include "brw_eu.h"
|
||||
#include "intel_debug.h"
|
||||
#include "common/gen_debug.h"
|
||||
#include "intel_asm_annotation.h"
|
||||
#include "compiler/nir/nir.h"
|
||||
|
||||
|
Reference in New Issue
Block a user