Code reorganization: update build.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 15 Feb 2008 08:50:12 +0000 (17:50 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 15 Feb 2008 08:50:12 +0000 (17:50 +0900)
Update the Makefiles and includes for the new paths.

Note that there hasn't been no separation of the Makefiles yet, and make is
jumping all over the place. That will be taken care shortly. But for now, make
should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm
might require some minor tweaks.

127 files changed:
configs/beos
configs/darwin
configs/darwin-x86ppc
configs/default
configs/freebsd-dri
configs/linux-cell
configs/linux-directfb
configs/linux-dri
configs/linux-dri-xcb
configs/linux-fbdev
configs/linux-osmesa
configs/linux-osmesa16
configs/linux-osmesa16-static
configs/linux-osmesa32
configs/linux-solo
src/gallium/Makefile
src/gallium/Makefile.template
src/gallium/aux/Makefile [new file with mode: 0644]
src/gallium/aux/draw/draw_private.h
src/gallium/aux/draw/draw_vertex.c
src/gallium/aux/draw/draw_vertex_shader.c
src/gallium/aux/llvm/Makefile
src/gallium/aux/llvm/gallivm.cpp
src/gallium/aux/llvm/gallivm_cpu.cpp
src/gallium/aux/llvm/tgsitollvm.cpp
src/gallium/aux/pipebuffer/Makefile
src/gallium/aux/tgsi/exec/tgsi_exec.c
src/gallium/aux/tgsi/exec/tgsi_sse2.c
src/gallium/aux/tgsi/util/tgsi_transform.h
src/gallium/drivers/Makefile [new file with mode: 0644]
src/gallium/drivers/cell/ppu/Makefile
src/gallium/drivers/cell/ppu/cell_clear.c
src/gallium/drivers/cell/ppu/cell_context.c
src/gallium/drivers/cell/ppu/cell_context.h
src/gallium/drivers/cell/ppu/cell_draw_arrays.c
src/gallium/drivers/cell/ppu/cell_flush.c
src/gallium/drivers/cell/ppu/cell_render.c
src/gallium/drivers/cell/ppu/cell_spu.c
src/gallium/drivers/cell/ppu/cell_spu.h
src/gallium/drivers/cell/ppu/cell_state_blend.c
src/gallium/drivers/cell/ppu/cell_state_clip.c
src/gallium/drivers/cell/ppu/cell_state_derived.c
src/gallium/drivers/cell/ppu/cell_state_fs.c
src/gallium/drivers/cell/ppu/cell_state_rasterizer.c
src/gallium/drivers/cell/ppu/cell_state_sampler.c
src/gallium/drivers/cell/ppu/cell_state_vertex.c
src/gallium/drivers/cell/ppu/cell_surface.c
src/gallium/drivers/cell/ppu/cell_vbuf.c
src/gallium/drivers/cell/ppu/cell_vertex_shader.c
src/gallium/drivers/cell/spu/Makefile
src/gallium/drivers/cell/spu/spu_exec.c
src/gallium/drivers/cell/spu/spu_exec.h
src/gallium/drivers/cell/spu/spu_main.c
src/gallium/drivers/cell/spu/spu_main.h
src/gallium/drivers/cell/spu/spu_render.c
src/gallium/drivers/cell/spu/spu_render.h
src/gallium/drivers/cell/spu/spu_tile.h
src/gallium/drivers/cell/spu/spu_util.c
src/gallium/drivers/cell/spu/spu_vertex_shader.c
src/gallium/drivers/failover/Makefile
src/gallium/drivers/i915simple/Makefile
src/gallium/drivers/i915simple/i915_context.c
src/gallium/drivers/i915simple/i915_context.h
src/gallium/drivers/i915simple/i915_fpc_translate.c
src/gallium/drivers/i915simple/i915_prim_emit.c
src/gallium/drivers/i915simple/i915_prim_vbuf.c
src/gallium/drivers/i915simple/i915_state.c
src/gallium/drivers/i915simple/i915_state_derived.c
src/gallium/drivers/i915simple/i915_strings.c
src/gallium/drivers/i915simple/i915_surface.c
src/gallium/drivers/i965simple/Makefile
src/gallium/drivers/i965simple/brw_shader_info.c
src/gallium/drivers/i965simple/brw_state.c
src/gallium/drivers/i965simple/brw_strings.c
src/gallium/drivers/i965simple/brw_surface.c
src/gallium/drivers/i965simple/brw_vs_emit.c
src/gallium/drivers/i965simple/brw_wm_decl.c
src/gallium/drivers/i965simple/brw_wm_glsl.c
src/gallium/drivers/softpipe/Makefile
src/gallium/drivers/softpipe/sp_context.c
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/softpipe/sp_draw_arrays.c
src/gallium/drivers/softpipe/sp_flush.c
src/gallium/drivers/softpipe/sp_headers.h
src/gallium/drivers/softpipe/sp_prim_setup.c
src/gallium/drivers/softpipe/sp_prim_vbuf.c
src/gallium/drivers/softpipe/sp_quad_fs.c
src/gallium/drivers/softpipe/sp_query.c
src/gallium/drivers/softpipe/sp_state_clip.c
src/gallium/drivers/softpipe/sp_state_derived.c
src/gallium/drivers/softpipe/sp_state_fs.c
src/gallium/drivers/softpipe/sp_state_rasterizer.c
src/gallium/drivers/softpipe/sp_state_sampler.c
src/gallium/drivers/softpipe/sp_state_vertex.c
src/gallium/drivers/softpipe/sp_surface.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_tile_cache.c
src/gallium/winsys/dri/Makefile [new file with mode: 0644]
src/gallium/winsys/dri/Makefile.template [new file with mode: 0644]
src/gallium/winsys/dri/intel/Makefile
src/gallium/winsys/dri/intel/intel_winsys_i915.c
src/gallium/winsys/dri/intel/intel_winsys_softpipe.c
src/gallium/winsys/xlib/xm_winsys.c
src/gallium/winsys/xlib/xm_winsys_aub.c
src/mesa/Makefile
src/mesa/drivers/x11/xm_api.c
src/mesa/drivers/x11/xm_dd.c
src/mesa/drivers/x11/xm_surface.c
src/mesa/drivers/x11/xm_winsys.c
src/mesa/drivers/x11/xmesaP.h
src/mesa/sources
src/mesa/state_tracker/st_atom_shader.c
src/mesa/state_tracker/st_cache.c
src/mesa/state_tracker/st_cache.h
src/mesa/state_tracker/st_cb_accum.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_feedback.c
src/mesa/state_tracker/st_cb_program.c
src/mesa/state_tracker/st_cb_rasterpos.c
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_debug.c
src/mesa/state_tracker/st_draw.c
src/mesa/state_tracker/st_gen_mipmap.c
src/mesa/state_tracker/st_mesa_to_tgsi.c
src/mesa/state_tracker/st_program.c

index f07973d0c7841099a4423c6a7d8b37ce2c801536..2b74af739d0bb6edae31ddbb33ade90fb25d4fe0 100644 (file)
@@ -86,7 +86,7 @@ else
 endif
 
 # Directories
-SRC_DIRS = mesa glu glut/beos
+SRC_DIRS = gallium mesa glu glut/beos
 GLU_DIRS = sgi
 DRIVER_DIRS = beos
 PROGRAM_DIRS = beos samples redbook demos tests
index 7826ecc605e339c902b2b5a9602ae250317e7c84..bba7802696279a5af78e24660e8e74544535f114 100644 (file)
@@ -25,5 +25,5 @@ GLW_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXt $(TOP)/lib/GL.dylib
 APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 
 # omit glw lib for now:
-SRC_DIRS = mesa glu glut/glx
+SRC_DIRS = gallium mesa glu glut/glx
 
index 13172327a7689e691c35346eb0e6dbf859195038..ebeb25051f1351b012cad5b2d1ab4b324e3f89ed 100644 (file)
@@ -29,5 +29,5 @@ GLW_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXt $(TOP)/lib/GL.dylib
 APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 
 # omit glw lib for now:
-SRC_DIRS = mesa glu glut/glx
+SRC_DIRS = gallium mesa glu glut/glx
 
index 166205a1d314f3c0994052e5fdebe60c4dbc66e7..25a87e66a1b019c06b43456b896b536cb26a6cdd 100644 (file)
@@ -60,7 +60,7 @@ GLW_SOURCES = GLwDrawA.c
 
 # Directories to build
 LIB_DIR = lib
-SRC_DIRS = mesa glu glut/glx glw
+SRC_DIRS = gallium mesa glu glut/glx glw
 GLU_DIRS = sgi
 DRIVER_DIRS = x11 osmesa
 # Which subdirs under $(TOP)/progs/ to enter:
index 402883d1de058b9b8b8e26c47de04911a98633bb..67d253b8695a4a0e5bfdaf69ded05424f0486863 100644 (file)
@@ -36,7 +36,7 @@ GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/X11R6/lib -lGL -lXt -lX11
 
 
 # Directories
-SRC_DIRS = glx/x11 mesa glu glut/glx glw
+SRC_DIRS = glx/x11 gallium mesa glu glut/glx glw
 DRIVER_DIRS = dri
 PROGRAM_DIRS = 
 WINDOW_SYSTEM=dri
index 3d874491e41855427bb0dc8e3a068d5ddfac9c5e..fdf20deeeb068f02859ef88f5ac0379a43bff618 100644 (file)
@@ -21,7 +21,7 @@ CFLAGS = $(OPT_FLAGS) -Wall -Winline -fPIC -m32 -mabi=altivec -maltivec -I. -I$(
 CXXFLAGS = $(CFLAGS)
 
 # Omitting glw here:
-SRC_DIRS = mesa glu glut/glx
+SRC_DIRS = gallium mesa glu glut/glx
 
 
 MKDEP_OPTIONS = -fdepend -Y
index 09332f48081205a92d6ed255c27d8430003a0557..dff27f78503272c6d4cae9565d5639dbfae8908c 100644 (file)
@@ -22,7 +22,7 @@ ifeq ($(HAVE_X86), yes)
 endif
 
 # Directories
-SRC_DIRS     = mesa glu glut/directfb
+SRC_DIRS     = gallium mesa glu glut/directfb
 GLU_DIRS     = sgi
 DRIVER_DIRS  = directfb
 PROGRAM_DIRS = demos directfb
index 936fce99829fce6f2d3a3a1c2498999108ec8779..e6135856fc1cf69ce4aef825900f0ed0fee35946 100644 (file)
@@ -54,10 +54,10 @@ USING_EGL=0
 
 # Directories
 ifeq ($(USING_EGL), 1)
-SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
+SRC_DIRS = egl glx/x11 gallium mesa glu glut/glx glw
 PROGRAM_DIRS = egl
 else
-SRC_DIRS = glx/x11 mesa glu glut/glx glw
+SRC_DIRS = glx/x11 gallium mesa glu glut/glx glw
 PROGRAM_DIRS =
 endif
 
@@ -66,4 +66,4 @@ WINDOW_SYSTEM=dri
 
 # gamma are missing because they have not been converted to use the new
 # interface.
-DRI_DIRS = intel_winsys 
+DRI_DIRS = intel 
index aa292a13ec1c3f696c22fc9b9f4e6c761b232b88..ea4bdf1864c9bf944c55193fb44bf5d433c06600 100644 (file)
@@ -53,10 +53,10 @@ USING_EGL=0
 
 # Directories
 ifeq ($(USING_EGL), 1)
-SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
+SRC_DIRS = egl glx/x11 gallium mesa glu glut/glx glw
 PROGRAM_DIRS = egl
 else
-SRC_DIRS = glx/x11 mesa glu glut/glx glw
+SRC_DIRS = glx/x11 gallium mesa glu glut/glx glw
 PROGRAM_DIRS =
 endif
 
index e36d20a702cdd40d26938c37e6a8a793648c99a5..1ddccb3f52bdf075bd6032d48c9dda78d6c3785b 100644 (file)
@@ -6,7 +6,7 @@ CONFIG_NAME = linux-fbdev
 
 CFLAGS = -O3 -ffast-math -ansi -pedantic -fPIC -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS -DUSE_GLFBDEV_DRIVER
 
-SRC_DIRS = mesa glu glut/fbdev
+SRC_DIRS = gallium mesa glu glut/fbdev
 DRIVER_DIRS = fbdev osmesa
 PROGRAM_DIRS = fbdev demos redbook samples
 
index cc1fbbd109aa0f745698c684c88188f9b306c437..0382a19553a835c23409fb303d75b6040ed49d7e 100644 (file)
@@ -14,7 +14,7 @@ CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOUR
 
 
 # Directories
-SRC_DIRS = mesa glu
+SRC_DIRS = gallium mesa glu
 DRIVER_DIRS = osmesa
 PROGRAM_DIRS = osdemos
 
index 1fb0186d3153af92e814f7b20054a91ee3d3586e..9a527592f1d156fc7d1c3eaef69efc959d7e1b6a 100644 (file)
@@ -17,7 +17,7 @@ OSMESA_LIB_NAME = libOSMesa16.so
 
 
 # Directories
-SRC_DIRS = mesa glu
+SRC_DIRS = gallium mesa glu
 DRIVER_DIRS = osmesa
 PROGRAM_DIRS = 
 
index 6645504478ef60b99f864270bae2ef163d61309c..1e6380b02e078098f0f071cbe2cedb5fb005604f 100644 (file)
@@ -18,7 +18,7 @@ OSMESA_LIB_NAME = libOSMesa16.a
 
 
 # Directories
-SRC_DIRS = mesa glu
+SRC_DIRS = gallium mesa glu
 DRIVER_DIRS = osmesa
 PROGRAM_DIRS = 
 
index a1e5a358d60c4cf34f46f0e7b59b2d0552f9d847..f0ef1831b0909595d00875ab0abb8d1a6c9e7361 100644 (file)
@@ -17,7 +17,7 @@ OSMESA_LIB_NAME = libOSMesa32.so
 
 
 # Directories
-SRC_DIRS = mesa glu
+SRC_DIRS = gallium mesa glu
 DRIVER_DIRS = osmesa
 PROGRAM_DIRS = 
 
index 220fe58b9a4948e9cd3529736948562f2e18add5..d49b97222829feee0718750025607073e05b87fe 100644 (file)
@@ -43,7 +43,7 @@ GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
 APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lpthread
 
 # Directories
-SRC_DIRS = glx/mini mesa glu glut/mini
+SRC_DIRS = glx/mini gallium mesa glu glut/mini
 DRIVER_DIRS = dri
 PROGRAM_DIRS = miniglx
 
index d880d090c15b43ef7b2e2607117ad7003b7146e7..a13b9a52d36b1f83f37561fe228b94401e78953e 100644 (file)
@@ -1,16 +1,8 @@
-TOP = ../../..
+TOP = ../..
 include $(TOP)/configs/current
 
 
-ifeq ($(CONFIG_NAME), linux-cell)
-CELL_DIR = cell
-endif
-
-ifeq ($(CONFIG_NAME), linux-llvm)
-LLVM_DIR = llvm
-endif
-
-SUBDIRS = softpipe i915simple i965simple failover pipebuffer $(CELL_DIR) $(LLVM_DIR)
+SUBDIRS = aux drivers
 
 
 default: subdirs
index 8e84f8eb2d7dad1e699a951ef5d272844b4a2888..0717ed8dd242350fe08e43549926cd50d1958a23 100644 (file)
@@ -15,7 +15,10 @@ OBJECTS = $(C_SOURCES:.c=.o) \
 ### Include directories
 INCLUDES = \
        -I. \
-       -I$(TOP)/src/mesa/pipe \
+       -I$(TOP)/src/gallium/include \
+       -I$(TOP)/src/gallium/include/pipe \
+       -I$(TOP)/src/gallium/aux \
+       -I$(TOP)/src/gallium/drivers \
        -I$(TOP)/src/mesa \
        -I$(TOP)/include \
         $(DRIVER_INCLUDES)
@@ -38,7 +41,7 @@ INCLUDES = \
 default: depend symlinks $(LIBNAME)
 
 
-$(LIBNAME): $(OBJECTS) Makefile $(TOP)/src/mesa/pipe/Makefile.template
+$(LIBNAME): $(OBJECTS) Makefile $(TOP)/src/gallium/Makefile.template
        $(TOP)/bin/mklib -o $@ -static $(OBJECTS) $(DRIVER_LIBS)
 
 
diff --git a/src/gallium/aux/Makefile b/src/gallium/aux/Makefile
new file mode 100644 (file)
index 0000000..da68498
--- /dev/null
@@ -0,0 +1,24 @@
+TOP = ../../..
+include $(TOP)/configs/current
+
+
+ifeq ($(CONFIG_NAME), linux-llvm)
+LLVM_DIR = llvm
+endif
+
+SUBDIRS = pipebuffer $(LLVM_DIR)
+
+
+default: subdirs
+
+
+subdirs:
+       @for dir in $(SUBDIRS) ; do \
+               if [ -d $$dir ] ; then \
+                       (cd $$dir && $(MAKE)) || exit 1 ; \
+               fi \
+       done
+
+
+clean:
+       rm -f `find . -name \*.[oa]`
index b17eaaed65e405efad6e88b3207f20b3433fd12d..3d09aef87c1272640d0367a6be065c291a6ea24e 100644 (file)
@@ -45,7 +45,7 @@
 #include "pipe/p_defines.h"
 
 #include "x86/rtasm/x86sse.h"
-#include "pipe/tgsi/exec/tgsi_exec.h"
+#include "tgsi/exec/tgsi_exec.h"
 
 
 struct gallivm_prog;
index 2d6592150fc3ca79593391ee384980f95fb7c267..daf1ef4b80fe3c8dc08f270c461e042bf70d00e3 100644 (file)
@@ -34,8 +34,8 @@
  */
 
 
-#include "pipe/draw/draw_private.h"
-#include "pipe/draw/draw_vertex.h"
+#include "draw/draw_private.h"
+#include "draw/draw_vertex.h"
 
 
 /**
index c824c1407e9c6c88b375aa5f8e66fdb0755619c8..377ecbb931c9685b7517383fb36837a71fcec7b5 100644 (file)
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
 #if defined(__i386__) || defined(__386__)
-#include "pipe/tgsi/exec/tgsi_sse2.h"
+#include "tgsi/exec/tgsi_sse2.h"
 #endif
 #include "draw_private.h"
 #include "draw_context.h"
 
 #include "x86/rtasm/x86sse.h"
-#include "pipe/llvm/gallivm.h"
+#include "llvm/gallivm.h"
 
 
 #define DBG_VS 0
index 9c6e16d86b744fb20ae7c9ad094faaa98bd5864b..e6ac399d08805d082fc009c85d6642184b5f8c8f 100644 (file)
@@ -30,7 +30,9 @@ OBJECTS = $(C_SOURCES:.c=.o) \
 ### Include directories
 INCLUDES = \
        -I. \
-       -I$(TOP)/src/mesa/pipe \
+       -I$(TOP)/src/gallium/drivers
+       -I$(TOP)/src/gallium/aux \
+       -I$(TOP)/src/gallium/include \
        -I$(TOP)/src/mesa \
        -I$(TOP)/include
 
index da0105c2c98b6747e2d7b95b955f21aabde078a6..d14bb3b99a877feb71b460ac2639475d9117a647 100644 (file)
@@ -42,8 +42,8 @@
 #include "pipe/p_context.h"
 #include "pipe/p_shader_tokens.h"
 
-#include "pipe/tgsi/exec/tgsi_exec.h"
-#include "pipe/tgsi/util/tgsi_dump.h"
+#include "tgsi/exec/tgsi_exec.h"
+#include "tgsi/util/tgsi_dump.h"
 
 #include <llvm/Module.h>
 #include <llvm/CallingConv.h>
index dc4d92a72a64f46f525b199800f5db8a57d42975..8f9830d0b1e87a19371403cbc969fafd0f34d694 100644 (file)
@@ -42,8 +42,8 @@
 #include "pipe/p_context.h"
 #include "pipe/p_shader_tokens.h"
 
-#include "pipe/tgsi/exec/tgsi_exec.h"
-#include "pipe/tgsi/util/tgsi_dump.h"
+#include "tgsi/exec/tgsi_exec.h"
+#include "tgsi/util/tgsi_dump.h"
 
 #include <llvm/Module.h>
 #include <llvm/CallingConv.h>
index 0de595e6789da23e113f28fcaca154828b04744c..2cb4acce32f77e0b85e01d2991d1f7227bba4c91 100644 (file)
 
 #include "pipe/p_shader_tokens.h"
 
-#include "pipe/tgsi/util/tgsi_parse.h"
-#include "pipe/tgsi/exec/tgsi_exec.h"
-#include "pipe/tgsi/util/tgsi_util.h"
-#include "pipe/tgsi/util/tgsi_build.h"
-#include "pipe/tgsi/util/tgsi_dump.h"
+#include "tgsi/util/tgsi_parse.h"
+#include "tgsi/exec/tgsi_exec.h"
+#include "tgsi/util/tgsi_util.h"
+#include "tgsi/util/tgsi_build.h"
+#include "tgsi/util/tgsi_dump.h"
 
 
 #include <llvm/Module.h>
index 75764a9a18815af36efd7e5791e248e074f377d6..588629e8701514892a161542eeafd380aa0129f3 100644 (file)
@@ -17,7 +17,7 @@ C_SOURCES = \
 
 ASM_SOURCES = 
 
-include ../Makefile.template
+include ../../Makefile.template
 
 symlinks:
 
index 37e60070686be9b41b1071d45a4c3953a89804bc..a8f64c2287f95948409bda6e40ada6d162fcdd4f 100644 (file)
@@ -54,8 +54,8 @@
 #include "pipe/p_state.h"
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
-#include "pipe/tgsi/util/tgsi_util.h"
+#include "tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_util.h"
 #include "tgsi_exec.h"
 
 #define TILE_TOP_LEFT     0
index 1e56e4afb69c02843d45b8ea83eee056eab4d6af..593464db3ed92f99059f55b30de94ef2d6161a05 100755 (executable)
@@ -27,8 +27,8 @@
 
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
-#include "pipe/tgsi/util/tgsi_util.h"
+#include "tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_util.h"
 #include "tgsi_exec.h"
 #include "tgsi_sse2.h"
 
index 365d8c298c7f3e14302a695ec7e69c89a6a70db4..fcf85d603beeffe062e747beccc19cf96c0fd41b 100644 (file)
@@ -31,8 +31,8 @@
 
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
-#include "pipe/tgsi/util/tgsi_build.h"
+#include "tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_build.h"
 
 
 
diff --git a/src/gallium/drivers/Makefile b/src/gallium/drivers/Makefile
new file mode 100644 (file)
index 0000000..c0345a9
--- /dev/null
@@ -0,0 +1,24 @@
+TOP = ../../..
+include $(TOP)/configs/current
+
+
+ifeq ($(CONFIG_NAME), linux-cell)
+CELL_DIR = cell
+endif
+
+SUBDIRS = softpipe i915simple i965simple failover pipebuffer $(CELL_DIR)
+
+
+default: subdirs
+
+
+subdirs:
+       @for dir in $(SUBDIRS) ; do \
+               if [ -d $$dir ] ; then \
+                       (cd $$dir && $(MAKE)) || exit 1 ; \
+               fi \
+       done
+
+
+clean:
+       rm -f `find . -name \*.[oa]`
index 50060f5cd30990525fbabd6384be72d2139544b1..011863c11e1b0063447a78870fce2acc756b5ad0 100644 (file)
@@ -40,8 +40,11 @@ SOURCES = \
 
 OBJECTS = $(SOURCES:.c=.o) \
 
-INCLUDE_DIRS = -I$(TOP)/src/mesa
-
+INCLUDE_DIRS = \
+       -I$(TOP)/src/mesa \
+       -I$(TOP)/src/gallium/include \
+       -I$(TOP)/src/gallium/aux \
+       -I$(TOP)/src/gallium/drivers
 
 .c.o:
        $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
index 07b908eec59eafc4b27466983b12f833a178e29a..e588a30d5bc5c7ea3d7cbf9e7f82f503f8253098 100644 (file)
@@ -35,7 +35,7 @@
 #include <stdint.h>
 #include "pipe/p_inlines.h"
 #include "pipe/p_util.h"
-#include "pipe/cell/common.h"
+#include "cell/common.h"
 #include "cell_clear.h"
 #include "cell_context.h"
 #include "cell_batch.h"
index bbe1fd7a111a483c837b1e2eb0e0d81bf78bf80e..e1eb22f4685b6e22a2e3a649b9097ce588fa6bd3 100644 (file)
@@ -37,9 +37,9 @@
 #include "pipe/p_format.h"
 #include "pipe/p_util.h"
 #include "pipe/p_winsys.h"
-#include "pipe/cell/common.h"
-#include "pipe/draw/draw_context.h"
-#include "pipe/draw/draw_private.h"
+#include "cell/common.h"
+#include "draw/draw_context.h"
+#include "draw/draw_private.h"
 #include "cell_clear.h"
 #include "cell_context.h"
 #include "cell_draw_arrays.h"
index 3b63419b5eb9b840f47e4f8532bbe6f9a05c6350..6196c0c72f94e684f90d3ec7f97febe205c2c200 100644 (file)
 
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
-#include "pipe/draw/draw_vertex.h"
-#include "pipe/draw/draw_vbuf.h"
+#include "draw/draw_vertex.h"
+#include "draw/draw_vbuf.h"
 #include "cell_winsys.h"
-#include "pipe/cell/common.h"
+#include "cell/common.h"
 
 
 struct cell_vbuf_render;
index 717cd8370f98a13f11a09dc1704ee59cc6c413a0..f12613649b934b0380e016c612e9a4d265bc9d57 100644 (file)
@@ -39,7 +39,7 @@
 #include "cell_draw_arrays.h"
 #include "cell_state.h"
 
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 
 
 
index f62bc4650ce2b27ea263694365e7e769ef109914..20f27531fce52559229f8eb44e3c63b093511ca5 100644 (file)
@@ -31,7 +31,7 @@
 #include "cell_flush.h"
 #include "cell_spu.h"
 #include "cell_render.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 
 
 void
index 4ab277a4b241720895e1ca6e8bab90e08fa6280f..b663b376222350f48815eb18a9f45fc42d3da95b 100644 (file)
@@ -34,7 +34,7 @@
 #include "cell_render.h"
 #include "cell_spu.h"
 #include "pipe/p_util.h"
-#include "pipe/draw/draw_private.h"
+#include "draw/draw_private.h"
 
 
 struct render_stage {
index 7c83a47e57404ad12f8cef195491e420b609289f..419e74dc40253508abcc07a559f2c84bb3616895 100644 (file)
@@ -31,7 +31,7 @@
 #include "cell_spu.h"
 #include "pipe/p_format.h"
 #include "pipe/p_state.h"
-#include "pipe/cell/common.h"
+#include "cell/common.h"
 
 
 /*
index 19eff94f967e1db0ea34ad86745a100286068a0a..137f26612e4acd1b403fc8513cba3159b77a35be 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <libspe2.h>
 #include <libmisc.h>
-#include "pipe/cell/common.h"
+#include "cell/common.h"
 
 #include "cell_context.h"
 
index 4fc60548c8579aaa0b438f5c470409e61dc85327..b6d6d71f0ce6b00220ef06339f6822d546ceefe8 100644 (file)
@@ -29,7 +29,7 @@
  */
 
 #include "pipe/p_util.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 #include "cell_context.h"
 #include "cell_state.h"
 
index 4f43665941d9c67ee6fb7a8c8645c68ad19cf218..0482f87e88953cbd3cdad44088a9187fe039d19b 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "cell_context.h"
 #include "cell_state.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 
 
 void cell_set_clip_state( struct pipe_context *pipe,
index 56daf5dfde0e183ae12e6d37615eee9a20968fb1..0c468292584758858ae1803d0812fd44ca00ac98 100644 (file)
@@ -27,8 +27,8 @@
 
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/draw/draw_context.h"
-#include "pipe/draw/draw_vertex.h"
+#include "draw/draw_context.h"
+#include "draw/draw_vertex.h"
 #include "cell_context.h"
 #include "cell_batch.h"
 #include "cell_state.h"
index 3f46a87d1891fbbcbcafd2554a8676f4985c6196..b2ed699a5be7aa931623f4845844fc549b2c775e 100644 (file)
 #include "pipe/p_util.h"
 #include "pipe/p_inlines.h"
 #include "pipe/p_winsys.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 #if 0
 #include "pipe/p_shader_tokens.h"
-#include "pipe/llvm/gallivm.h"
-#include "pipe/tgsi/util/tgsi_dump.h"
-#include "pipe/tgsi/exec/tgsi_sse2.h"
+#include "llvm/gallivm.h"
+#include "tgsi/util/tgsi_dump.h"
+#include "tgsi/exec/tgsi_sse2.h"
 #endif
 
 #include "cell_context.h"
index d8128ece54d34be9ec361bf0be1d434a113ab893..7eca5b576565287a193f60a83275e80bc21ecad7 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "pipe/p_defines.h"
 #include "pipe/p_util.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 #include "cell_context.h"
 #include "cell_state.h"
 
index ade6cc8338e2b93b671f08325a4a30068ad6b777..a33421a4ad0d4dc0154987c9f7ad4b6c4a596ca2 100644 (file)
@@ -30,7 +30,7 @@
  */
 
 #include "pipe/p_util.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 #include "cell_context.h"
 #include "cell_state.h"
 #include "cell_texture.h"
index 0f01e920f950a2e217b9c8ff1a44d64f802f0430..563831b62db62390c54abc507b9fecf7e56d8521 100644 (file)
@@ -32,7 +32,7 @@
 #include "cell_context.h"
 #include "cell_state.h"
 
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 
 
 void
index fca93e474248c42e1a930b8aed6e456b3ce51eec..a35db0ef991e530aafc5fd134af49221857da5bc 100644 (file)
@@ -29,7 +29,7 @@
 #include "pipe/p_util.h"
 #include "pipe/p_inlines.h"
 #include "pipe/p_winsys.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 #include "cell_context.h"
 #include "cell_surface.h"
 
index e9fafe492eeea2268ee2dcd550d43e47603bff31..cc727ff4edb71d01ce9c55718f4288a2c4c22bb9 100644 (file)
@@ -36,7 +36,7 @@
 #include "cell_flush.h"
 #include "cell_spu.h"
 #include "cell_vbuf.h"
-#include "pipe/draw/draw_vbuf.h"
+#include "draw/draw_vbuf.h"
 
 
 /** Allow vertex data to be inlined after RENDER command */
index 80dd500b345ce1c1e786bbf9157faa04a82d0c7e..0ba4506505e34ce6c5d78c89681d95b8903e0461 100644 (file)
@@ -38,9 +38,9 @@
 #include "cell_spu.h"
 #include "cell_batch.h"
 
-#include "pipe/cell/common.h"
-#include "pipe/draw/draw_context.h"
-#include "pipe/draw/draw_private.h"
+#include "cell/common.h"
+#include "draw/draw_context.h"
+#include "draw/draw_private.h"
 
 /**
  * Run the vertex shader on all vertices in the vertex queue.
index f202971d73880862ca4bf7aeed380c9654259a2c..7aa947299e7abe8aee2d397503ad396f550d9742 100644 (file)
@@ -31,7 +31,11 @@ SPU_OBJECTS = $(SOURCES:.c=.o) \
 
 SPU_ASM_OUT = $(SOURCES:.c=.s) \
 
-INCLUDE_DIRS = -I$(TOP)/src/mesa
+INCLUDE_DIRS = \
+       -I$(TOP)/src/mesa \
+       -I$(TOP)/src/gallium/include \
+       -I$(TOP)/src/gallium/aux \
+       -I$(TOP)/src/gallium/drivers
 
 
 .c.o:
index e51008b9b3cbd598081ba582f6e36771a9a7d1b6..109540b1f7bd1db0e142a9cbf4d7fb25cad7bbad 100644 (file)
@@ -67,8 +67,8 @@
 #include "pipe/p_state.h"
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
-#include "pipe/tgsi/util/tgsi_util.h"
+#include "tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_util.h"
 #include "spu_exec.h"
 #include "spu_main.h"
 #include "spu_vertex_shader.h"
index b4c7661ef67b18d29dda5bf4b186d73e0159fb8a..3e17c490d2021aec959fb3b829a5057ce6952a91 100644 (file)
@@ -29,7 +29,7 @@
 #define SPU_EXEC_H
 
 #include "pipe/p_compiler.h"
-#include "pipe/tgsi/exec/tgsi_exec.h"
+#include "tgsi/exec/tgsi_exec.h"
 
 #if defined __cplusplus
 extern "C" {
index e375197fe6008b3a34b7aa1c0430397cbabf5146..1e7243b863911f46fd7989303845a498dd4a8904 100644 (file)
@@ -38,7 +38,7 @@
 #include "spu_tile.h"
 //#include "spu_test.h"
 #include "spu_vertex_shader.h"
-#include "pipe/cell/common.h"
+#include "cell/common.h"
 #include "pipe/p_defines.h"
 
 
index 1710a175123194c7af733ec9b199b3d6a710298c..5c95d112ac146015b9fe6e1b3a9f8259e0eb1669 100644 (file)
@@ -31,8 +31,8 @@
 
 #include <spu_mfcio.h>
 
-#include "pipe/cell/common.h"
-#include "pipe/draw/draw_vertex.h"
+#include "cell/common.h"
+#include "draw/draw_vertex.h"
 #include "pipe/p_state.h"
 
 
index 932fb500b3f3cff2ba1cd678b977b6ae3d2009b5..20e77aa2e63693f59bfd49ca926d7d52bd321f5d 100644 (file)
@@ -34,7 +34,7 @@
 #include "spu_render.h"
 #include "spu_tri.h"
 #include "spu_tile.h"
-#include "pipe/cell/common.h"
+#include "cell/common.h"
 
 
 
index fbcdc5ec316224c7bc1ef4688e1bd4a98e8cbd39..493434f08788b7a3f9d93cf31d2ba1a5d21aed29 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef SPU_RENDER_H
 #define SPU_RENDER_H
 
-#include "pipe/cell/common.h"
+#include "cell/common.h"
 
 extern void
 cmd_render(const struct cell_command_render *render, uint *pos_incr);
index e53340a55a4266e70afccafcca6a968fb32824d7..3105b848fdcb831f1b0e55f28395a8d018bc0506 100644 (file)
@@ -32,7 +32,7 @@
 #include <libmisc.h>
 #include <spu_mfcio.h>
 #include "spu_main.h"
-#include "pipe/cell/common.h"
+#include "cell/common.h"
 
 
 
index ac373240c1fbbd62b86bd72c941c65615bf193f5..ea4274a0a7bb4cce137102028f17edf77c25c0da 100644 (file)
@@ -1,8 +1,8 @@
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_parse.h"
 //#include "tgsi_build.h"
-#include "pipe/tgsi/util/tgsi_util.h"
+#include "tgsi/util/tgsi_util.h"
 
 unsigned
 tgsi_util_get_src_register_swizzle(
index c1cbbb6d1e96e81a4226de24f93035ee2de5551e..3f5bf41aa2f815e2b02b9e29da7d3ab004eff93b 100644 (file)
@@ -39,9 +39,9 @@
 #include "pipe/p_shader_tokens.h"
 #include "spu_vertex_shader.h"
 #include "spu_exec.h"
-#include "pipe/draw/draw_private.h"
-#include "pipe/draw/draw_context.h"
-#include "pipe/cell/common.h"
+#include "draw/draw_private.h"
+#include "draw/draw_context.h"
+#include "cell/common.h"
 #include "spu_main.h"
 
 static INLINE unsigned
index 72d0895c74d92125312421bb3a6d7423a6f3a75c..14389bd0551f44e86e4d36f3bf95d9dc49725741 100644 (file)
@@ -15,7 +15,7 @@ C_SOURCES = \
 
 ASM_SOURCES = 
 
-include ../Makefile.template
+include ../../Makefile.template
 
 symlinks:
 
index 2f91de3afc68d0844f7daffde7172bf8876c91fa..ee22ba86f9b0ad37129ea07569d9533a195bf804 100644 (file)
@@ -32,7 +32,7 @@ C_SOURCES = \
 
 ASM_SOURCES = 
 
-include ../Makefile.template
+include ../../Makefile.template
 
 symlinks:
 
index 497623a700600052d5fa3afee1a7be3ec892c7e8..7f71f8fd4f5d88a3a0dae1c44d86bc102e3b6873 100644 (file)
@@ -32,7 +32,7 @@
 #include "i915_texture.h"
 #include "i915_reg.h"
 
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_winsys.h"
 #include "pipe/p_util.h"
index b4ea63c3e749ce9e2a88ccd025d46d6a9d995683..2d876925b2c1cd3730fda129f4aef95ec29e4731 100644 (file)
@@ -33,7 +33,7 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
 
-#include "pipe/draw/draw_vertex.h"
+#include "draw/draw_vertex.h"
 
 
 #define I915_TEX_UNITS 8
index 868f0c7e046bc54f4b1de08ad5eb0b4fb2f9ce08..6c1524c768e0c4135f8284543ad0133278a01042 100644 (file)
@@ -33,9 +33,9 @@
 #include "i915_fpc.h"
 
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_parse.h"
 
-#include "pipe/draw/draw_vertex.h"
+#include "draw/draw_vertex.h"
 
 
 /**
index c4a706c37d85717f954574bc8893c97cf9f693a6..44c432593697c7a60157e465b33b9049f2898714 100644 (file)
@@ -26,7 +26,7 @@
  **************************************************************************/
 
 
-#include "pipe/draw/draw_private.h"
+#include "draw/draw_private.h"
 #include "pipe/p_util.h"
 
 #include "i915_context.h"
index e069773fd4e993c78abbb3d5c8499a5721d30ce4..c5bf6174f681024eafbae78edc7f651a61dd1deb 100644 (file)
@@ -38,7 +38,7 @@
  */
 
 
-#include "pipe/draw/draw_vbuf.h"
+#include "draw/draw_vbuf.h"
 #include "pipe/p_debug.h"
 #include "pipe/p_util.h"
 #include "pipe/p_inlines.h"
index abd5571b885f807f39b1cb673a1d029b73a586ed..294e6fad0355fdfee64023be7a973b6b9dd5038c 100644 (file)
@@ -29,7 +29,7 @@
  */
 
 
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 #include "pipe/p_winsys.h"
 #include "pipe/p_util.h"
 
index 653983e4a9922fe3e1eb348a58dae9dc9525b6bc..4767584fc608eecbf91dfbffd8738be7fbf53749 100644 (file)
@@ -27,8 +27,8 @@
 
 
 #include "pipe/p_util.h"
-#include "pipe/draw/draw_context.h"
-#include "pipe/draw/draw_vertex.h"
+#include "draw/draw_context.h"
+#include "draw/draw_vertex.h"
 #include "i915_context.h"
 #include "i915_state.h"
 #include "i915_reg.h"
index c713bf72086b48149ad9c39a0c75920d2f3199bb..301fedea197bbe26bd9a76157ef496d3492d8d83 100644 (file)
@@ -70,7 +70,7 @@ static const char *i915_get_name( struct pipe_context *pipe )
       break;
    }
 
-   sprintf(buffer, "pipe/i915 (chipset: %s)", chipset);
+   sprintf(buffer, "i915 (chipset: %s)", chipset);
    return buffer;
 }
 
index de0cc5fe06aeccd9ead17204729a6d84e829674e..17fd27895a27d7943de34cb054895260eacefdf1 100644 (file)
@@ -33,7 +33,7 @@
 #include "pipe/p_util.h"
 #include "pipe/p_inlines.h"
 #include "pipe/p_winsys.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 
 
 /*
index 48c00ab50b80302aa9944bce92093598ed3625c3..1dec1f97495bb5c5e260ade8f50ac6fb9491edbe 100644 (file)
@@ -61,6 +61,6 @@ ASM_SOURCES =
 
 DRIVER_DEFINES = -I.
 
-include ../Makefile.template
+include ../../Makefile.template
 
 symlinks:
index 431b45466a6bbed7daf7342eb015e8344d7fb833..a762a870fe94548aec584b265b0071126fed6575 100644 (file)
@@ -3,7 +3,7 @@
 #include "brw_state.h"
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_parse.h"
 
 
 
index 95dfce88e4a7bfcf29a6642085b24861d24672d8..f746d1cc57c42d0123fd7a89b4c25dc6a77e316d 100644 (file)
@@ -33,7 +33,7 @@
 #include "pipe/p_winsys.h"
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_dump.h"
+#include "tgsi/util/tgsi_dump.h"
 
 #include "brw_context.h"
 #include "brw_defines.h"
index 29a41ed1e9b5e162aa207fec85f5043ede9c8e96..3d9c50961fae2ad4e12a57691e7315cba0d6d03f 100644 (file)
@@ -59,7 +59,7 @@ static const char *brw_get_name( struct pipe_context *pipe )
       break;
    }
 
-   sprintf(buffer, "pipe/i965 (chipset: %s)", chipset);
+   sprintf(buffer, "i965 (chipset: %s)", chipset);
    return buffer;
 }
 
index 518845e4b2e33caf050c68ddb65cd1e8bff40b0d..376a42b1a6ad72c4c851660d998beb9b759dd99a 100644 (file)
@@ -32,7 +32,7 @@
 #include "pipe/p_util.h"
 #include "pipe/p_inlines.h"
 #include "pipe/p_winsys.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 
 
 /*
index 98915ba1016a101bd7e93d7c18fd36ce80060756..05df4860edab32492534b6c9cd3847ee57f80e90 100644 (file)
@@ -33,7 +33,7 @@
 #include "brw_vs.h"
 
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_parse.h"
 
 struct brw_prog_info {
    unsigned num_temps;
index b45a333a2e93e652bdcbd3eaf4b33de51bce7fd9..97418a52e7f41ec8ade43798c7d78da64f1dd5e4 100644 (file)
@@ -4,7 +4,7 @@
 #include "brw_wm.h"
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_parse.h"
 
 static struct brw_reg alloc_tmp(struct brw_wm_compile *c)
 {
index d95645d10853f676a069097bd29f43c0e22775fe..44f946ea7483b54c5677752af4cb41d46e9e7605 100644 (file)
@@ -4,7 +4,7 @@
 #include "brw_wm.h"
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_parse.h"
 
 
 
index 31438a882e62d2fbaa268dad6d37a8d1a97b9e0b..2304ea4246a7a07fd24f347ba1800c339b4ca0a3 100644 (file)
@@ -44,7 +44,7 @@ C_SOURCES = \
 
 ASM_SOURCES = 
 
-include ../Makefile.template
+include ../../Makefile.template
 
 symlinks:
 
index cea6b90104f5f8457ab14de20409cfdd6d6f42b3..5e98f190bbfc8a6720a21ceb47ace10872d43789 100644 (file)
@@ -29,7 +29,7 @@
  *    Keith Whitwell <keith@tungstengraphics.com>
  */
 
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_inlines.h"
 #include "pipe/p_util.h"
index aff8c2cc5dc58e6d111a67a3f5246d87091fc5a4..8c79cb3ce4fa815f75f370a4c6ec867741cfa3cb 100644 (file)
@@ -34,7 +34,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 
-#include "pipe/draw/draw_vertex.h"
+#include "draw/draw_vertex.h"
 
 #include "sp_quad.h"
 
index 71a303a8b5882f49a2e24b67e5e05dfdf7f12ed7..2049afda34f21f59ad71e13e8b421054180c9013 100644 (file)
@@ -38,7 +38,7 @@
 #include "sp_context.h"
 #include "sp_state.h"
 
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 
 
 
index ced0d5d098369bacd9ab3986ff5497c12882f9e3..2cbd0d7cabede4c961cae84aba8005123b83955c 100644 (file)
@@ -31,7 +31,7 @@
 
 
 #include "pipe/p_defines.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 #include "sp_flush.h"
 #include "sp_context.h"
 #include "sp_surface.h"
index 0ae31d87961e68db4d377dbbd950fb7987939079..9cf822213336070481078adfcb7438e7956511fd 100644 (file)
@@ -31,7 +31,7 @@
 #ifndef SP_HEADERS_H
 #define SP_HEADERS_H
 
-#include "pipe/tgsi/exec/tgsi_exec.h"
+#include "tgsi/exec/tgsi_exec.h"
 
 #define PRIM_POINT 1
 #define PRIM_LINE  2
index 277204866157d7093c7c7ad62131f66798247fc4..d73521ccbe510f53f28da683da0aae8afe63a2ec 100644 (file)
@@ -38,8 +38,8 @@
 #include "sp_quad.h"
 #include "sp_state.h"
 #include "sp_prim_setup.h"
-#include "pipe/draw/draw_private.h"
-#include "pipe/draw/draw_vertex.h"
+#include "draw/draw_private.h"
+#include "draw/draw_vertex.h"
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
 
index 7f71fdb6a9ac995fe6eeb2a83421fc7c95b8c71b..69bea8a8f5c711d927ca00dbd9e817762f0bbffa 100644 (file)
@@ -39,9 +39,9 @@
 #include "sp_context.h"
 #include "sp_state.h"
 #include "sp_prim_vbuf.h"
-#include "pipe/draw/draw_context.h"
-#include "pipe/draw/draw_private.h"
-#include "pipe/draw/draw_vbuf.h"
+#include "draw/draw_context.h"
+#include "draw/draw_private.h"
+#include "draw/draw_vbuf.h"
 
 
 #define SP_MAX_VBUF_INDEXES 1024
index 33168584137892d6ca5f84e8f1b1fe9fc864360a..b4c01a7ea8cd2bba5798320aac6f9820e55f6137 100644 (file)
@@ -42,7 +42,7 @@
 #include "x86/rtasm/x86sse.h"
 
 #ifdef MESA_LLVM
-#include "pipe/llvm/gallivm.h"
+#include "llvm/gallivm.h"
 #endif
 
 #include "sp_context.h"
index 6a8a43aedafcfce4eb3faf6d92f84bf3f806e233..adf9ccf64c6f73812ceb98e1e3f013df5421fc55 100644 (file)
@@ -29,7 +29,7 @@
  *    Keith Whitwell <keith@tungstengraphics.com>
  */
 
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_inlines.h"
 #include "pipe/p_util.h"
index 08c5f06d05d3505bbe2814595931c7eb86c551a0..c797c0dd3b15556ea70acb15227b41d8a1310ad2 100644 (file)
@@ -29,7 +29,7 @@
  */
 #include "sp_context.h"
 #include "sp_state.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 
 
 void softpipe_set_clip_state( struct pipe_context *pipe,
index 372597869f3942b12ad0a762d8da7df82a8e477a..9d8fd8b750f2f59f583b41140afb5f8a79ee6e89 100644 (file)
@@ -27,9 +27,9 @@
 
 #include "pipe/p_util.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/draw/draw_context.h"
-#include "pipe/draw/draw_vertex.h"
-#include "pipe/draw/draw_private.h"
+#include "draw/draw_context.h"
+#include "draw/draw_vertex.h"
+#include "draw/draw_private.h"
 #include "sp_context.h"
 #include "sp_state.h"
 
index 0b814fc2847f049ccf301965eb8c322503d7dc8a..1e3cadd43d150dc1809a625260645713ec6de358 100644 (file)
 #include "pipe/p_util.h"
 #include "pipe/p_inlines.h"
 #include "pipe/p_winsys.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/llvm/gallivm.h"
-#include "pipe/tgsi/util/tgsi_dump.h"
-#include "pipe/tgsi/exec/tgsi_sse2.h"
+#include "llvm/gallivm.h"
+#include "tgsi/util/tgsi_dump.h"
+#include "tgsi/exec/tgsi_sse2.h"
 
 
 void *
index 53755099dde65c35ceb2de0931418e03561af92e..98e04352dbc197f1ae9b57f9496979bbc53016ca 100644 (file)
@@ -29,7 +29,7 @@
 #include "pipe/p_util.h"
 #include "sp_context.h"
 #include "sp_state.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 
 
 
index ea348c7e958023d93f149dbb59a57a027d944a96..460adccec4f0c57369e5b65d5421209475683a38 100644 (file)
 
 #include "pipe/p_util.h"
 
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 
 #include "sp_context.h"
 #include "sp_context.h"
 #include "sp_state.h"
 #include "sp_texture.h"
 #include "sp_tile_cache.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 
 
 
index 09ff540ccfdd76a026e25346391b1c27c43b137d..f01a10de3b4009611209aeffd941d2359f1a6657 100644 (file)
@@ -33,7 +33,7 @@
 #include "sp_state.h"
 #include "sp_surface.h"
 
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_context.h"
 
 
 void
index 8802ced1874564593b72640f4906874307fcbe62..653449c4f182473a25f02d642bb8753c1545ed33 100644 (file)
@@ -29,7 +29,7 @@
 #include "pipe/p_util.h"
 #include "pipe/p_inlines.h"
 #include "pipe/p_winsys.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 #include "sp_context.h"
 #include "sp_surface.h"
 
index 325bdb86da5fd88c43013fe6e9db8b6eef845813..2f82fd6abeac53db025b2b61cbbe219d5003b410 100644 (file)
@@ -40,7 +40,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_util.h"
-#include "pipe/tgsi/exec/tgsi_exec.h"
+#include "tgsi/exec/tgsi_exec.h"
 
 
 /*
index 1597361b82f5b3359b6a8cce8b26a63b6d790c2d..dde3fabc81ed7dd9f46dca00066b5c9f958186f4 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "pipe/p_util.h"
 #include "pipe/p_inlines.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 #include "sp_context.h"
 #include "sp_surface.h"
 #include "sp_tile_cache.h"
diff --git a/src/gallium/winsys/dri/Makefile b/src/gallium/winsys/dri/Makefile
new file mode 100644 (file)
index 0000000..f466ce6
--- /dev/null
@@ -0,0 +1,38 @@
+# src/mesa/drivers/dri/Makefile
+
+TOP = ../../../..
+
+include $(TOP)/configs/current
+
+
+
+default: $(TOP)/$(LIB_DIR) subdirs
+
+
+$(TOP)/$(LIB_DIR):
+       -mkdir $(TOP)/$(LIB_DIR)
+
+
+subdirs:
+       @for dir in $(DRI_DIRS) ; do \
+               if [ -d $$dir ] ; then \
+                       (cd $$dir && $(MAKE)) || exit 1 ; \
+               fi \
+       done
+
+
+install:
+       @for dir in $(DRI_DIRS) ; do \
+               if [ -d $$dir ] ; then \
+                       (cd $$dir && $(MAKE) install) || exit 1 ; \
+               fi \
+       done
+
+
+clean:
+       @for dir in $(DRI_DIRS) ; do \
+               if [ -d $$dir ] ; then \
+                       (cd $$dir && $(MAKE) clean) ; \
+               fi \
+       done
+       -rm -f common/*.o
diff --git a/src/gallium/winsys/dri/Makefile.template b/src/gallium/winsys/dri/Makefile.template
new file mode 100644 (file)
index 0000000..b96305c
--- /dev/null
@@ -0,0 +1,113 @@
+# -*-makefile-*-
+
+MESA_MODULES = $(TOP)/src/mesa/libmesa.a
+
+COMMON_GALLIUM_SOURCES = \
+        $(TOP)/src/mesa/drivers/dri/common/utils.c \
+        $(TOP)/src/mesa/drivers/dri/common/vblank.c \
+        $(TOP)/src/mesa/drivers/dri/common/dri_util.c \
+        $(TOP)/src/mesa/drivers/dri/common/xmlconfig.c
+
+COMMON_SOURCES = $(COMMON_GALLIUM_SOURCES) \
+        $(TOP)/src/mesa/drivers/common/driverfuncs.c \
+        $(TOP)/src/mesa/drivers/dri/common/texmem.c \
+        $(TOP)/src/mesa/drivers/dri/common/drirenderbuffer.c
+
+COMMON_BM_SOURCES = \
+       $(TOP)/src/mesa/drivers/dri/common/dri_bufmgr.c \
+       $(TOP)/src/mesa/drivers/dri/common/dri_drmpool.c
+
+
+ifeq ($(WINDOW_SYSTEM),dri)
+WINOBJ=
+WINLIB=
+INCLUDES = $(SHARED_INCLUDES) $(EXPAT_INCLUDES)
+
+OBJECTS = $(C_SOURCES:.c=.o) \
+         $(ASM_SOURCES:.S=.o) 
+
+else
+# miniglx
+WINOBJ=
+WINLIB=-L$(MESA)/src/glx/mini
+MINIGLX_INCLUDES = -I$(TOP)/src/glx/mini
+INCLUDES = $(MINIGLX_INCLUDES) \
+          $(SHARED_INCLUDES) \
+          $(PCIACCESS_CFLAGS)
+
+OBJECTS = $(C_SOURCES:.c=.o) \
+         $(MINIGLX_SOURCES:.c=.o) \
+         $(ASM_SOURCES:.S=.o) 
+endif
+
+
+### Include directories
+SHARED_INCLUDES = \
+       -I. \
+       -I$(TOP)/src/mesa/drivers/dri/common \
+       -Iserver \
+       -I$(TOP)/include \
+       -I$(TOP)/include/GL/internal \
+       -I$(TOP)/src/gallium/include \
+       -I$(TOP)/src/gallium/aux \
+       -I$(TOP)/src/gallium/drivers \
+       -I$(TOP)/src/mesa \
+       -I$(TOP)/src/mesa/main \
+       -I$(TOP)/src/mesa/glapi \
+       -I$(TOP)/src/mesa/math \
+       -I$(TOP)/src/mesa/transform \
+       -I$(TOP)/src/mesa/shader \
+       -I$(TOP)/src/mesa/swrast \
+       -I$(TOP)/src/mesa/swrast_setup \
+       -I$(TOP)/src/egl/main \
+       -I$(TOP)/src/egl/drivers/dri \
+       $(LIBDRM_CFLAGS)
+
+
+##### RULES #####
+
+.c.o:
+       $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES) $< -o $@
+
+.S.o:
+       $(CC) -c $(INCLUDES) $(CFLAGS) $(DRIVER_DEFINES)  $< -o $@
+
+
+##### TARGETS #####
+
+default: depend symlinks $(LIBNAME) $(TOP)/$(LIB_DIR)/$(LIBNAME)
+
+
+$(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) $(WINOBJ) Makefile $(TOP)/src/mesa/drivers/dri/Makefile.template
+       $(TOP)/bin/mklib -noprefix -o $@ \
+               $(OBJECTS) $(PIPE_DRIVERS) $(MESA_MODULES)  $(WINOBJ) $(DRI_LIB_DEPS)
+
+
+$(TOP)/$(LIB_DIR)/$(LIBNAME): $(LIBNAME)
+       $(INSTALL) $(LIBNAME) $(TOP)/$(LIB_DIR) 
+
+
+depend: $(C_SOURCES) $(ASM_SOURCES) $(SYMLINKS)
+       rm -f depend
+       touch depend
+       $(MKDEP) $(MKDEP_OPTIONS) $(DRIVER_DEFINES) $(INCLUDES) $(C_SOURCES) \
+               $(ASM_SOURCES) 2> /dev/null
+
+
+# Emacs tags
+tags:
+       etags `find . -name \*.[ch]` `find ../include`
+
+
+# Remove .o and backup files
+clean:
+       -rm -f *.o */*.o *~ *.so *~ server/*.o $(SYMLINKS)
+       -rm -f depend depend.bak
+
+
+install: $(LIBNAME)
+       $(INSTALL) -d $(DRI_DRIVER_INSTALL_DIR)
+       $(INSTALL) -m 755 $(LIBNAME) $(DRI_DRIVER_INSTALL_DIR)
+
+
+include depend
index 9ae0f013256bede341b94df3c6e2cc80b82013d7..40654bb2ac3c3621a161085dfed8833b8cacba9f 100644 (file)
@@ -7,8 +7,8 @@ LIBNAME = i915tex_dri.so
 MINIGLX_SOURCES = server/intel_dri.c
 
 PIPE_DRIVERS = \
-       $(TOP)/src/mesa/pipe/softpipe/libsoftpipe.a \
-       $(TOP)/src/mesa/pipe/i915simple/libi915simple.a
+       $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
+       $(TOP)/src/gallium/drivers/i915simple/libi915simple.a
 
 DRIVER_SOURCES = \
        intel_winsys_pipe.c \
@@ -28,11 +28,11 @@ C_SOURCES = \
 
 ASM_SOURCES = 
 
-DRIVER_DEFINES = -I../intel $(shell pkg-config libdrm --atleast-version=2.3.1 \
+DRIVER_DEFINES = -I$(TOP)/src/mesa/drivers/dri/intel $(shell pkg-config libdrm --atleast-version=2.3.1 \
                                && echo "-DDRM_VBLANK_FLIP=DRM_VBLANK_FLIP")
 
 include ../Makefile.template
 
-intel_tex_layout.o: ../intel/intel_tex_layout.c
+intel_tex_layout.o: $(TOP)/src/mesa/drivers/dri/intel/intel_tex_layout.c
 
 symlinks:
index 1ba6a9e1b254a1ef72860ad4aa890136d2b182e4..0ed3890e936fa95d81fa5624c87117e3261595d0 100644 (file)
@@ -39,7 +39,7 @@
 #include "intel_winsys.h"
 
 #include "pipe/p_util.h"
-#include "pipe/i915simple/i915_winsys.h"
+#include "i915simple/i915_winsys.h"
 
 
 struct intel_i915_winsys {
index cec3437831c0ab0c9f5c0a4a8d40eaa62d1fcf98..9e483bdc9f58c333eb4a708245dfa7d8718baa1f 100644 (file)
@@ -34,7 +34,7 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_util.h"
 #include "pipe/p_format.h"
-#include "pipe/softpipe/sp_winsys.h"
+#include "softpipe/sp_winsys.h"
 
 
 struct intel_softpipe_winsys {
index c3cd22eea3f3e22bb998041a457e2575ce221aee..8da596d419e7d8ec726d007e835a36f58401c7f5 100644 (file)
 #include "pipe/p_context.h"
 #include "pipe/p_util.h"
 #include "pipe/p_inlines.h"
-#include "pipe/softpipe/sp_winsys.h"
+#include "softpipe/sp_winsys.h"
 
 #ifdef GALLIUM_CELL
-#include "pipe/cell/ppu/cell_context.h"
-#include "pipe/cell/ppu/cell_winsys.h"
+#include "cell/ppu/cell_context.h"
+#include "cell/ppu/cell_winsys.h"
 #else
 #define TILE_SIZE 32  /* avoid compilation errors */
 #endif
index bf415702570ffb9ec932d6adbebed575c9c30ff8..dbfd37bda29e96904c9a9631c16bb24950209c7e 100644 (file)
@@ -39,7 +39,7 @@
 #include "pipe/p_winsys.h"
 #include "pipe/p_util.h"
 #include "pipe/p_inlines.h"
-#include "pipe/i965simple/brw_winsys.h"
+#include "i965simple/brw_winsys.h"
 #include "brw_aub.h"
 #include "xm_winsys_aub.h"
 
index 720f1b2e02649866cbba0d8c6823d482725ec364..561608fedd6cb5e1c8e8ebe2ac7ba309970dca09 100644 (file)
@@ -12,16 +12,16 @@ GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
 
 
 PIPE_LIB = \
-       $(TOP)/src/mesa/pipe/softpipe/libsoftpipe.a \
-       $(TOP)/src/mesa/pipe/i965simple/libi965simple.a
+       $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
+       $(TOP)/src/gallium/drivers/i965simple/libi965simple.a
 
 ifeq ($(CONFIG_NAME), linux-cell)
-CELL_LIB = $(TOP)/src/mesa/pipe/cell/ppu/libcell.a
-CELL_LIB_SPU = $(TOP)/src/mesa/pipe/cell/spu/g3d_spu.a
+CELL_LIB = $(TOP)/src/gallium/drivers/cell/ppu/libcell.a
+CELL_LIB_SPU = $(TOP)/src/gallium/drivers/cell/spu/g3d_spu.a
 endif
 
 ifeq ($(CONFIG_NAME), linux-llvm)
-LLVM_LIB = $(TOP)/src/mesa/pipe/llvm/libgallivm.a
+LLVM_LIB = $(TOP)/src/gallium/aux/llvm/libgallivm.a
 endif
 
 .SUFFIXES : .cpp
@@ -71,7 +71,7 @@ libmesa.a: $(SOLO_OBJECTS)
        fi
 
 linux-solo: depend subdirs libmesa.a
-       cd drivers/dri ; $(MAKE)
+       cd $(TOP)/src/gallium/winsys/dri ; $(MAKE)
 
 
 #####################################################################
@@ -165,7 +165,6 @@ depend: $(ALL_SOURCES)
 subdirs:
        @ (cd x86 ; $(MAKE))
        @ (cd x86-64 ; $(MAKE))
-       (cd pipe ; $(MAKE))
 
 install: default
        $(INSTALL) -d $(INSTALL_DIR)/include/GL
@@ -178,7 +177,7 @@ install: default
                $(INSTALL) $(TOP)/$(LIB_DIR)/libOSMesa* $(INSTALL_DIR)/$(LIB_DIR); \
        fi
        @if [ "${DRIVER_DIRS}" = "dri" ] ; then \
-               cd drivers/dri ; $(MAKE) install ; \
+               cd $(TOP)/gallium/winsys/dri ; $(MAKE) install ; \
        fi
 
 ## NOT INSTALLED YET:
@@ -198,7 +197,6 @@ clean:
        (cd drivers/dri && $(MAKE) clean)
        (cd x86 && $(MAKE) clean)
        (cd x86-64 && $(MAKE) clean)
-       (cd pipe ; $(MAKE) clean )
 
 
 include depend
index 08c98eab4863f2273c2b4c88a02d43b4a04ecea8..18b033666f0ad265805da1993afd52af939316a9 100644 (file)
@@ -85,7 +85,7 @@
 
 #include "state_tracker/st_public.h"
 #include "state_tracker/st_context.h"
-#include "pipe/softpipe/sp_context.h"
+#include "softpipe/sp_context.h"
 #include "pipe/p_defines.h"
 
 /**
index 8ae243ae6628556a1c2763f66caf8d0a575d993f..34287effe1cf77f2baa3053c8b5e201b66e76af4 100644 (file)
@@ -53,7 +53,7 @@
 #include "tnl/tnl.h"
 #include "tnl/t_context.h"
 
-#include "pipe/softpipe/sp_context.h"
+#include "softpipe/sp_context.h"
 #include "state_tracker/st_public.h"
 #include "state_tracker/st_context.h"
 #include "state_tracker/st_draw.h"
index 5533158ece00b8904b48939e617a5bdfe2e26230..81616b92d96d5e1fe923ff5162bf723dd9b11631 100644 (file)
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_winsys.h"
-#include "pipe/softpipe/sp_context.h"
-#include "pipe/softpipe/sp_clear.h"
-#include "pipe/softpipe/sp_tile_cache.h"
-#include "pipe/softpipe/sp_surface.h"
+#include "softpipe/sp_context.h"
+#include "softpipe/sp_clear.h"
+#include "softpipe/sp_tile_cache.h"
+#include "softpipe/sp_surface.h"
 #include "state_tracker/st_context.h"
 
 
index a690df2772715132e8443a03b51cd16b8139c5f8..2edc6976933328a58a2b69f4fcaad44d425ddb4f 100644 (file)
@@ -38,7 +38,7 @@
 #include "main/macros.h"
 
 #include "pipe/p_winsys.h"
-#include "pipe/softpipe/sp_winsys.h"
+#include "softpipe/sp_winsys.h"
 
 
 /**
index 4709d633942e73b5d905e14185476f6c0133f917..fd2dfcd79aaeece3a09abacf1be29cedf03b3178 100644 (file)
@@ -37,8 +37,8 @@
 #include "xm_image.h"
 #endif
 #include "state_tracker/st_cb_fbo.h"
-#include "pipe/softpipe/sp_context.h"
-#include "pipe/softpipe/sp_surface.h"
+#include "softpipe/sp_context.h"
+#include "softpipe/sp_surface.h"
 
 
 extern _glthread_Mutex _xmesa_lock;
index 1165425183afbad026dc27fff46daa7edb3699dd..2d07738210df2919491a6e4452589e279f2bf615 100644 (file)
@@ -158,45 +158,45 @@ VF_SOURCES = \
 
 
 DRAW_SOURCES = \
-       pipe/draw/draw_clip.c \
-       pipe/draw/draw_context.c\
-       pipe/draw/draw_cull.c \
-       pipe/draw/draw_debug.c \
-       pipe/draw/draw_flatshade.c \
-       pipe/draw/draw_offset.c \
-       pipe/draw/draw_prim.c \
-       pipe/draw/draw_stipple.c \
-       pipe/draw/draw_twoside.c \
-       pipe/draw/draw_unfilled.c \
-       pipe/draw/draw_validate.c \
-       pipe/draw/draw_vbuf.c \
-       pipe/draw/draw_vertex.c \
-       pipe/draw/draw_vertex_cache.c \
-       pipe/draw/draw_vertex_fetch.c \
-       pipe/draw/draw_vertex_shader.c \
-       pipe/draw/draw_vf.c \
-       pipe/draw/draw_vf_generic.c \
-       pipe/draw/draw_vf_sse.c \
-       pipe/draw/draw_wide_prims.c
+       $(TOP)/src/gallium/aux/draw/draw_clip.c \
+       $(TOP)/src/gallium/aux/draw/draw_context.c\
+       $(TOP)/src/gallium/aux/draw/draw_cull.c \
+       $(TOP)/src/gallium/aux/draw/draw_debug.c \
+       $(TOP)/src/gallium/aux/draw/draw_flatshade.c \
+       $(TOP)/src/gallium/aux/draw/draw_offset.c \
+       $(TOP)/src/gallium/aux/draw/draw_prim.c \
+       $(TOP)/src/gallium/aux/draw/draw_stipple.c \
+       $(TOP)/src/gallium/aux/draw/draw_twoside.c \
+       $(TOP)/src/gallium/aux/draw/draw_unfilled.c \
+       $(TOP)/src/gallium/aux/draw/draw_validate.c \
+       $(TOP)/src/gallium/aux/draw/draw_vbuf.c \
+       $(TOP)/src/gallium/aux/draw/draw_vertex.c \
+       $(TOP)/src/gallium/aux/draw/draw_vertex_cache.c \
+       $(TOP)/src/gallium/aux/draw/draw_vertex_fetch.c \
+       $(TOP)/src/gallium/aux/draw/draw_vertex_shader.c \
+       $(TOP)/src/gallium/aux/draw/draw_vf.c \
+       $(TOP)/src/gallium/aux/draw/draw_vf_generic.c \
+       $(TOP)/src/gallium/aux/draw/draw_vf_sse.c \
+       $(TOP)/src/gallium/aux/draw/draw_wide_prims.c
 
 TGSIEXEC_SOURCES = \
-       pipe/tgsi/exec/tgsi_exec.c \
-       pipe/tgsi/exec/tgsi_sse2.c
+       $(TOP)/src/gallium/aux/tgsi/exec/tgsi_exec.c \
+       $(TOP)/src/gallium/aux/tgsi/exec/tgsi_sse2.c
 
 TGSIUTIL_SOURCES = \
-       pipe/tgsi/util/tgsi_build.c \
-       pipe/tgsi/util/tgsi_dump.c \
-       pipe/tgsi/util/tgsi_parse.c \
-       pipe/tgsi/util/tgsi_util.c
+       $(TOP)/src/gallium/aux/tgsi/util/tgsi_build.c \
+       $(TOP)/src/gallium/aux/tgsi/util/tgsi_dump.c \
+       $(TOP)/src/gallium/aux/tgsi/util/tgsi_parse.c \
+       $(TOP)/src/gallium/aux/tgsi/util/tgsi_util.c
 
 STATECACHE_SOURCES = \
-       pipe/cso_cache/cso_hash.c \
-       pipe/cso_cache/cso_cache.c
+       $(TOP)/src/gallium/aux/cso_cache/cso_hash.c \
+       $(TOP)/src/gallium/aux/cso_cache/cso_cache.c
 
 PIPEUTIL_SOURCES = \
-       pipe/util/p_debug.c \
-       pipe/util/p_tile.c \
-       pipe/util/p_util.c
+       $(TOP)/src/gallium/aux/util/p_debug.c \
+       $(TOP)/src/gallium/aux/util/p_tile.c \
+       $(TOP)/src/gallium/aux/util/p_util.c
 
 STATETRACKER_SOURCES = \
        state_tracker/st_atom.c \
@@ -331,13 +331,13 @@ __COMMON_DRIVER_SOURCES =                 \
        drivers/common/driverfuncs.c
 
 X11_DRIVER_SOURCES =           \
-       pipe/xlib/glxapi.c      \
-       pipe/xlib/fakeglx.c     \
-       pipe/xlib/xfonts.c      \
-       pipe/xlib/xm_api.c      \
-       pipe/xlib/xm_winsys.c   \
-       pipe/xlib/xm_winsys_aub.c       \
-       pipe/xlib/brw_aub.c
+       $(TOP)/src/gallium/winsys/xlib/glxapi.c \
+       $(TOP)/src/gallium/winsys/xlib/fakeglx.c        \
+       $(TOP)/src/gallium/winsys/xlib/xfonts.c \
+       $(TOP)/src/gallium/winsys/xlib/xm_api.c \
+       $(TOP)/src/gallium/winsys/xlib/xm_winsys.c      \
+       $(TOP)/src/gallium/winsys/xlib/xm_winsys_aub.c  \
+       $(TOP)/src/gallium/winsys/xlib/brw_aub.c
 
 OSMESA_DRIVER_SOURCES = \
        drivers/osmesa/osmesa.c
@@ -425,7 +425,10 @@ FBDEV_DRIVER_OBJECTS = $(FBDEV_DRIVER_SOURCES:.c=.o)
 INCLUDE_DIRS = \
        -I$(TOP)/include \
        -I$(TOP)/src/mesa \
-       -I$(TOP)/src/mesa/main
+       -I$(TOP)/src/mesa/main \
+       -I$(TOP)/src/gallium/include \
+       -I$(TOP)/src/gallium/drivers \
+       -I$(TOP)/src/gallium/aux
 
 OLD_INCLUDE_DIRS = \
        -I$(TOP)/src/mesa/tnl \
@@ -435,4 +438,4 @@ OLD_INCLUDE_DIRS = \
        -I$(TOP)/src/mesa/shader \
        -I$(TOP)/src/mesa/shader/grammar \
        -I$(TOP)/src/mesa/shader/slang \
-       -I$(TOP)/src/mesa/pipe/tgsi
+       -I$(TOP)/s$(TOP)/src/gallium/aux/tgsi
index 2c6ec8421b06203e5d2fbd178fa834475740b518..b67b620eaa5137688fdd661367d69dd45bc144af 100644 (file)
@@ -43,7 +43,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_shader_tokens.h"
 
-#include "pipe/cso_cache/cso_cache.h"
+#include "cso_cache/cso_cache.h"
 
 #include "st_context.h"
 #include "st_cache.h"
index e0965b217ab9d17c72603867555667fb08e619de..2979e7fae540d1bb74899dfcbb8acd9588d81ed5 100644 (file)
@@ -36,8 +36,8 @@
 
 #include "pipe/p_state.h"
 
-#include "pipe/cso_cache/cso_cache.h"
-#include "pipe/cso_cache/cso_hash.h"
+#include "cso_cache/cso_cache.h"
+#include "cso_cache/cso_hash.h"
 
 
 /* Those function will either find the state of the given template
index e0c176b0ffc0bec9861d584297aaad7ac58f9e4d..b81de316ec990854d4b3a1aea1b6ddeee575c939 100644 (file)
@@ -33,7 +33,7 @@
 #ifndef ST_CACHE_H
 #define ST_CACHE_H
 
-#include "pipe/cso_cache/cso_cache.h"
+#include "cso_cache/cso_cache.h"
 
 struct pipe_blend_state;
 struct pipe_sampler_state;
index 3a3bf9016dd61e20ae30262e9e38326871aa4bff..663c4f205d8419bfa13c8ec710b081d646c52073 100644 (file)
@@ -43,7 +43,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_inlines.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 
 
 #define UNCLAMPED_FLOAT_TO_SHORT(us, f)  \
index f13199a3c0fe787d76cb8306dfcb5a5df1ecf247..e2d4e06da19b81f3df0cf983c203ef8be2a63f05 100644 (file)
@@ -56,7 +56,7 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_inlines.h"
 #include "pipe/p_winsys.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 #include "shader/prog_instruction.h"
 
 
index 31744151f1d84759249e1d7c6527fd65b198148e..5315294c07be69a8c32dfee211abf09efe586471 100644 (file)
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_winsys.h"
-#include "pipe/cso_cache/cso_cache.h"
+#include "cso_cache/cso_cache.h"
 
-#include "pipe/draw/draw_context.h"
-#include "pipe/draw/draw_private.h"
+#include "draw/draw_context.h"
+#include "draw/draw_private.h"
 
 
 /**
index af3ee655048b77edb8792d6b2e66babfa7f25fa5..61d4f4c41c6f1ea778130a1e114ef8f26e2ab25d 100644 (file)
@@ -39,8 +39,8 @@
 #include "shader/programopt.h"
 #include "shader/shader_api.h"
 
-#include "pipe/cso_cache/cso_cache.h"
-#include "pipe/draw/draw_context.h"
+#include "cso_cache/cso_cache.h"
+#include "draw/draw_context.h"
 
 #include "st_context.h"
 #include "st_program.h"
index 7e347c489381826559d372692c20d47f8c1cef65..5b0eb6022beb661640de4cfa2678c3750dc9876f 100644 (file)
@@ -44,8 +44,8 @@
 #include "st_draw.h"
 #include "st_cb_rasterpos.h"
 #include "st_draw.h"
-#include "pipe/draw/draw_context.h"
-#include "pipe/draw/draw_private.h"
+#include "draw/draw_context.h"
+#include "draw/draw_private.h"
 #include "shader/prog_instruction.h"
 #include "vbo/vbo.h"
 
index 868c5f3c5f9f042e581623affba6b64c87dd8189..c89c74229e5b66f50b7422531ad53e63f902d888 100644 (file)
@@ -40,7 +40,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_inlines.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 #include "st_context.h"
 #include "st_cb_readpixels.h"
 #include "st_cb_fbo.h"
index 91a40288cc7e39d87466e90e19d49b2ad8fb69f2..03dbb30b0fe8f447b78797edaeb1a857ebf0912c 100644 (file)
@@ -47,7 +47,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_inlines.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 
 
 #define DBG if (0) printf
index bf4618bed8e5aea02326053f05750c512fd450f7..09e389f9dc7d26f5694a41d3d0191aa96e602d8a 100644 (file)
@@ -54,8 +54,8 @@
 #include "pipe/p_context.h"
 #include "pipe/p_winsys.h"
 #include "pipe/p_inlines.h"
-#include "pipe/draw/draw_context.h"
-#include "pipe/cso_cache/cso_cache.h"
+#include "draw/draw_context.h"
+#include "cso_cache/cso_cache.h"
 
 
 /**
index 57450e52bf47b9f61743b17a22e11f22c16fa0ef..5888bcb98a3155ec17a38ae96a2ab6818077fa80 100644 (file)
@@ -31,9 +31,9 @@
 
 #include "pipe/p_state.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_dump.h"
+#include "tgsi/util/tgsi_dump.h"
 
-#include "pipe/cso_cache/cso_cache.h"
+#include "cso_cache/cso_cache.h"
 
 #include "st_context.h"
 #include "st_debug.h"
index ae9f5c8b117039cf1df4aadc3e836a388aff4029..1c0fa8c6aade4250f674ab50c4476422b285ff8c 100644 (file)
@@ -47,8 +47,8 @@
 #include "pipe/p_winsys.h"
 #include "pipe/p_inlines.h"
 
-#include "pipe/draw/draw_private.h"
-#include "pipe/draw/draw_context.h"
+#include "draw/draw_private.h"
+#include "draw/draw_context.h"
 
 
 static GLuint double_types[4] = {
index 459941cca871180b7f6b276dd75a4ede9e1e8488..6c09b86033ba116937b7c7b3df5782f3e98bf694 100644 (file)
@@ -37,7 +37,7 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_inlines.h"
 #include "pipe/p_winsys.h"
-#include "pipe/cso_cache/cso_cache.h"
+#include "cso_cache/cso_cache.h"
 
 #include "st_context.h"
 #include "st_draw.h"
index 325aa2017347532b784f76fd1dea3be8bfd49c97..97206752af3b346f0de2789ee0f93433173c386f 100644 (file)
@@ -32,9 +32,9 @@
 
 #include "pipe/p_compiler.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
-#include "pipe/tgsi/util/tgsi_build.h"
-#include "pipe/tgsi/util/tgsi_util.h"
+#include "tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_build.h"
+#include "tgsi/util/tgsi_util.h"
 #include "st_mesa_to_tgsi.h"
 #include "shader/prog_instruction.h"
 #include "shader/prog_parameter.h"
index c8297badedd16455ce82cef471d95fe23d0c67f0..dc992ee9c24ffcc4b543b09a2d262a1a44339404 100644 (file)
@@ -38,8 +38,8 @@
 #include "pipe/p_context.h"
 #include "pipe/p_defines.h"
 #include "pipe/p_shader_tokens.h"
-#include "pipe/draw/draw_context.h"
-#include "pipe/tgsi/util/tgsi_dump.h"
+#include "draw/draw_context.h"
+#include "tgsi/util/tgsi_dump.h"
 
 #include "st_context.h"
 #include "st_cache.h"