gallium/radeon: cleanup header inclusion

- Add top_srcdir/src/gallium/winsys to GALLIUM_DRIVER_C{XXFLAGS}.
 - Remove top_srcdir/src/gallium/drivers/radeon from the includes.

As a result:
 - Common radeon headers are prefixed with 'radeon/'
 - Winsys header inclusion is prefixed 'radeon/drm'

Cc: Marek Olšák <marek.olsak@amd.com>
Cc: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Emil Velikov 2014-08-16 17:58:25 +01:00
parent 22a13f5b09
commit a131263a2f
32 changed files with 36 additions and 36 deletions

View file

@ -16,6 +16,7 @@ GALLIUM_DRIVER_CFLAGS = \
-I$(top_srcdir)/src/gallium/include \
-I$(top_srcdir)/src/gallium/auxiliary \
-I$(top_srcdir)/src/gallium/drivers \
-I$(top_srcdir)/src/gallium/winsys \
$(DEFINES) \
$(VISIBILITY_CFLAGS)
@ -26,6 +27,7 @@ GALLIUM_DRIVER_CXXFLAGS = \
-I$(top_srcdir)/src/gallium/include \
-I$(top_srcdir)/src/gallium/auxiliary \
-I$(top_srcdir)/src/gallium/drivers \
-I$(top_srcdir)/src/gallium/winsys \
$(DEFINES) \
$(VISIBILITY_CXXFLAGS)

View file

@ -29,7 +29,7 @@
#include <stdio.h>
#include "../r300_reg.h"
#include "r300_reg.h"
static void presub_string(char out[10], unsigned int inst)
{

View file

@ -38,7 +38,7 @@
#include "r300_fragprog.h"
#include "../r300_reg.h"
#include "r300_reg.h"
#include "radeon_program_pair.h"
#include "r300_fragprog_swizzle.h"

View file

@ -35,7 +35,7 @@
#include <stdio.h>
#include "../r300_reg.h"
#include "r300_reg.h"
#include "radeon_compiler.h"
#define MAKE_SWZ3(x, y, z) (RC_MAKE_SWIZZLE(RC_SWIZZLE_##x, RC_SWIZZLE_##y, RC_SWIZZLE_##z, RC_SWIZZLE_ZERO))

View file

@ -24,7 +24,7 @@
#include <stdio.h>
#include "../r300_reg.h"
#include "r300_reg.h"
#include "radeon_compiler_util.h"
#include "radeon_dataflow.h"

View file

@ -22,7 +22,7 @@
#include "radeon_compiler.h"
#include "radeon_code.h"
#include "../r300_reg.h"
#include "r300_reg.h"
#include <stdio.h>

View file

@ -32,7 +32,7 @@
#include "radeon_compiler_util.h"
#include "radeon_list.h"
#include "radeon_variable.h"
#include "../r300_reg.h"
#include "r300_reg.h"
/**
* Rewrite IF instructions to use the ALU result special register.

View file

@ -41,7 +41,7 @@
#include "r500_fragprog.h"
#include "../r300_reg.h"
#include "r300_reg.h"
#include "radeon_program_pair.h"

View file

@ -22,7 +22,7 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include "r300_chipset.h"
#include "../../winsys/radeon/drm/radeon_winsys.h"
#include "radeon/drm/radeon_winsys.h"
#include "util/u_debug.h"
#include "util/u_memory.h"

View file

@ -36,7 +36,7 @@
#include "r300_defines.h"
#include "r300_screen.h"
#include "compiler/radeon_regalloc.h"
#include "../../winsys/radeon/drm/radeon_winsys.h"
#include "radeon/drm/radeon_winsys.h"
struct u_upload_mgr;
struct r300_context;

View file

@ -25,7 +25,7 @@
#define R300_SCREEN_H
#include "r300_chipset.h"
#include "../../winsys/radeon/drm/radeon_winsys.h"
#include "radeon/drm/radeon_winsys.h"
#include "pipe/p_screen.h"
#include "util/u_slab.h"
#include "os/os_thread.h"

View file

@ -20,8 +20,7 @@ libr600_la_SOURCES = \
if NEED_RADEON_LLVM
AM_CFLAGS += \
$(LLVM_CFLAGS) \
-I$(top_srcdir)/src/gallium/drivers/radeon/
$(LLVM_CFLAGS)
libr600_la_SOURCES += \
$(LLVM_C_SOURCES)

View file

@ -13,8 +13,8 @@
#include "r600_opcodes.h"
#include "r600_shader.h"
#include "r600_pipe.h"
#include "radeon_llvm.h"
#include "radeon_llvm_emit.h"
#include "radeon/radeon_llvm.h"
#include "radeon/radeon_llvm_emit.h"
#include <stdio.h>

View file

@ -4,7 +4,7 @@
#if defined R600_USE_LLVM || defined HAVE_OPENCL
#include "radeon_llvm.h"
#include "radeon/radeon_llvm.h"
#include <llvm-c/Core.h>
struct r600_bytecode;

View file

@ -26,8 +26,8 @@
#ifndef R600_PIPE_H
#define R600_PIPE_H
#include "../radeon/r600_pipe_common.h"
#include "../radeon/r600_cs.h"
#include "radeon/r600_pipe_common.h"
#include "radeon/r600_cs.h"
#include "r600_llvm.h"
#include "r600_public.h"

View file

@ -34,7 +34,7 @@
#include <stdio.h>
#include "../../winsys/radeon/drm/radeon_winsys.h"
#include "radeon/drm/radeon_winsys.h"
#include "util/u_blitter.h"
#include "util/u_double_list.h"

View file

@ -45,7 +45,7 @@
#include "vl/vl_defines.h"
#include "vl/vl_mpeg12_decoder.h"
#include "../../winsys/radeon/drm/radeon_winsys.h"
#include "radeon/drm/radeon_winsys.h"
#include "r600_pipe_common.h"
#include "radeon_video.h"
#include "radeon_uvd.h"

View file

@ -34,7 +34,7 @@
#ifndef RADEON_UVD_H
#define RADEON_UVD_H
#include "../../winsys/radeon/drm/radeon_winsys.h"
#include "radeon/drm/radeon_winsys.h"
#include "vl/vl_video_buffer.h"
/* UVD uses PM4 packet type 0 and 2 */

View file

@ -40,7 +40,7 @@
#include "vl/vl_video_buffer.h"
#include "../../winsys/radeon/drm/radeon_winsys.h"
#include "radeon/drm/radeon_winsys.h"
#include "r600_pipe_common.h"
#include "radeon_video.h"
#include "radeon_vce.h"

View file

@ -40,7 +40,7 @@
#include "vl/vl_video_buffer.h"
#include "../../winsys/radeon/drm/radeon_winsys.h"
#include "radeon/drm/radeon_winsys.h"
#include "radeon_video.h"
#include "radeon_vce.h"

View file

@ -39,7 +39,7 @@
#include "vl/vl_defines.h"
#include "vl/vl_video_buffer.h"
#include "../../winsys/radeon/drm/radeon_winsys.h"
#include "radeon/drm/radeon_winsys.h"
#include "r600_pipe_common.h"
#include "radeon_video.h"
#include "radeon_vce.h"

View file

@ -34,7 +34,7 @@
#ifndef RADEON_VIDEO_H
#define RADEON_VIDEO_H
#include "../../winsys/radeon/drm/radeon_winsys.h"
#include "radeon/drm/radeon_winsys.h"
#include "vl/vl_video_buffer.h"
#define RVID_ERR(fmt, args...) \

View file

@ -24,7 +24,6 @@ include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
-I$(top_srcdir)/src/gallium/drivers/radeon \
$(GALLIUM_DRIVER_CFLAGS) \
$(RADEON_CFLAGS) \
$(LLVM_CFLAGS)

View file

@ -24,12 +24,12 @@
#include "util/u_memory.h"
#include "../radeon/r600_cs.h"
#include "radeon/r600_cs.h"
#include "si_pipe.h"
#include "si_shader.h"
#include "sid.h"
#include "radeon_llvm_util.h"
#include "radeon/radeon_llvm_util.h"
#define MAX_GLOBAL_BUFFERS 20
#if HAVE_LLVM < 0x0305

View file

@ -23,7 +23,7 @@
* Authors:
* Marek Olšák <marek.olsak@amd.com>
*/
#include "../radeon/r600_cs.h"
#include "radeon/r600_cs.h"
#include "si_pipe.h"
#include "si_shader.h"
#include "sid.h"

View file

@ -26,7 +26,7 @@
#include "sid.h"
#include "si_pipe.h"
#include "../radeon/r600_cs.h"
#include "radeon/r600_cs.h"
#include "util/u_format.h"

View file

@ -24,7 +24,7 @@
* Christian König <christian.koenig@amd.com>
*/
#include "../radeon/r600_cs.h"
#include "radeon/r600_cs.h"
#include "util/u_memory.h"
#include "si_pipe.h"
#include "sid.h"

View file

@ -27,7 +27,7 @@
#ifndef SI_PM4_H
#define SI_PM4_H
#include "../../winsys/radeon/drm/radeon_winsys.h"
#include "radeon/drm/radeon_winsys.h"
#define SI_PM4_MAX_DW 256
#define SI_PM4_MAX_BO 32

View file

@ -32,8 +32,8 @@
#include "gallivm/lp_bld_logic.h"
#include "gallivm/lp_bld_arit.h"
#include "gallivm/lp_bld_flow.h"
#include "radeon_llvm.h"
#include "radeon_llvm_emit.h"
#include "radeon/radeon_llvm.h"
#include "radeon/radeon_llvm_emit.h"
#include "util/u_memory.h"
#include "tgsi/tgsi_parse.h"
#include "tgsi/tgsi_util.h"

View file

@ -27,7 +27,7 @@
#include "si_pipe.h"
#include "si_shader.h"
#include "sid.h"
#include "../radeon/r600_cs.h"
#include "radeon/r600_cs.h"
#include "tgsi/tgsi_parse.h"
#include "tgsi/tgsi_scan.h"

View file

@ -28,7 +28,7 @@
#define SI_STATE_H
#include "si_pm4.h"
#include "../radeon/r600_pipe_common.h"
#include "radeon/r600_pipe_common.h"
struct si_screen;

View file

@ -26,7 +26,7 @@
#include "si_pipe.h"
#include "si_shader.h"
#include "../radeon/r600_cs.h"
#include "radeon/r600_cs.h"
#include "sid.h"
#include "util/u_format.h"