nouveau: match gallium code reorginisation.
authorBen Skeggs <skeggsb@gmail.com>
Sat, 16 Feb 2008 06:23:12 +0000 (17:23 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Sat, 16 Feb 2008 06:23:12 +0000 (17:23 +1100)
That was... fun..

84 files changed:
src/gallium/drivers/Makefile
src/gallium/drivers/nouveau/nouveau_bo.h [moved from src/mesa/pipe/nouveau/nouveau_bo.h with 100% similarity]
src/gallium/drivers/nouveau/nouveau_channel.h [moved from src/mesa/pipe/nouveau/nouveau_channel.h with 100% similarity]
src/gallium/drivers/nouveau/nouveau_class.h [moved from src/mesa/pipe/nouveau/nouveau_class.h with 100% similarity]
src/gallium/drivers/nouveau/nouveau_gldefs.h [moved from src/mesa/pipe/nouveau/nouveau_gldefs.h with 100% similarity]
src/gallium/drivers/nouveau/nouveau_grobj.h [moved from src/mesa/pipe/nouveau/nouveau_grobj.h with 100% similarity]
src/gallium/drivers/nouveau/nouveau_notifier.h [moved from src/mesa/pipe/nouveau/nouveau_notifier.h with 100% similarity]
src/gallium/drivers/nouveau/nouveau_push.h [moved from src/mesa/pipe/nouveau/nouveau_push.h with 98% similarity]
src/gallium/drivers/nouveau/nouveau_pushbuf.h [moved from src/mesa/pipe/nouveau/nouveau_pushbuf.h with 100% similarity]
src/gallium/drivers/nouveau/nouveau_resource.h [moved from src/mesa/pipe/nouveau/nouveau_resource.h with 100% similarity]
src/gallium/drivers/nouveau/nouveau_stateobj.h [moved from src/mesa/pipe/nouveau/nouveau_stateobj.h with 100% similarity]
src/gallium/drivers/nouveau/nouveau_winsys.h [moved from src/mesa/pipe/nouveau/nouveau_winsys.h with 86% similarity]
src/gallium/drivers/nv30/Makefile [moved from src/mesa/pipe/nv30/Makefile with 92% similarity]
src/gallium/drivers/nv30/nv30_clear.c [moved from src/mesa/pipe/nv30/nv30_clear.c with 100% similarity]
src/gallium/drivers/nv30/nv30_context.c [moved from src/mesa/pipe/nv30/nv30_context.c with 99% similarity]
src/gallium/drivers/nv30/nv30_context.h [moved from src/mesa/pipe/nv30/nv30_context.h with 95% similarity]
src/gallium/drivers/nv30/nv30_draw.c [moved from src/mesa/pipe/nv30/nv30_draw.c with 97% similarity]
src/gallium/drivers/nv30/nv30_fragprog.c [moved from src/mesa/pipe/nv30/nv30_fragprog.c with 99% similarity]
src/gallium/drivers/nv30/nv30_fragtex.c [moved from src/mesa/pipe/nv30/nv30_fragtex.c with 100% similarity]
src/gallium/drivers/nv30/nv30_miptree.c [moved from src/mesa/pipe/nv30/nv30_miptree.c with 100% similarity]
src/gallium/drivers/nv30/nv30_query.c [moved from src/mesa/pipe/nv30/nv30_query.c with 100% similarity]
src/gallium/drivers/nv30/nv30_shader.h [moved from src/mesa/pipe/nv30/nv30_shader.h with 100% similarity]
src/gallium/drivers/nv30/nv30_state.c [moved from src/mesa/pipe/nv30/nv30_state.c with 100% similarity]
src/gallium/drivers/nv30/nv30_state.h [moved from src/mesa/pipe/nv30/nv30_state.h with 100% similarity]
src/gallium/drivers/nv30/nv30_state_emit.c [moved from src/mesa/pipe/nv30/nv30_state_emit.c with 100% similarity]
src/gallium/drivers/nv30/nv30_surface.c [moved from src/mesa/pipe/nv30/nv30_surface.c with 94% similarity]
src/gallium/drivers/nv30/nv30_vbo.c [moved from src/mesa/pipe/nv30/nv30_vbo.c with 99% similarity]
src/gallium/drivers/nv30/nv30_vertprog.c [moved from src/mesa/pipe/nv30/nv30_vertprog.c with 99% similarity]
src/gallium/drivers/nv40/Makefile [moved from src/mesa/pipe/nv40/Makefile with 92% similarity]
src/gallium/drivers/nv40/nv40_clear.c [moved from src/mesa/pipe/nv40/nv40_clear.c with 100% similarity]
src/gallium/drivers/nv40/nv40_context.c [moved from src/mesa/pipe/nv40/nv40_context.c with 99% similarity]
src/gallium/drivers/nv40/nv40_context.h [moved from src/mesa/pipe/nv40/nv40_context.h with 95% similarity]
src/gallium/drivers/nv40/nv40_dma.h [moved from src/mesa/pipe/nv40/nv40_dma.h with 100% similarity]
src/gallium/drivers/nv40/nv40_draw.c [moved from src/mesa/pipe/nv40/nv40_draw.c with 97% similarity]
src/gallium/drivers/nv40/nv40_fragprog.c [moved from src/mesa/pipe/nv40/nv40_fragprog.c with 99% similarity]
src/gallium/drivers/nv40/nv40_fragtex.c [moved from src/mesa/pipe/nv40/nv40_fragtex.c with 100% similarity]
src/gallium/drivers/nv40/nv40_miptree.c [moved from src/mesa/pipe/nv40/nv40_miptree.c with 100% similarity]
src/gallium/drivers/nv40/nv40_query.c [moved from src/mesa/pipe/nv40/nv40_query.c with 100% similarity]
src/gallium/drivers/nv40/nv40_shader.h [moved from src/mesa/pipe/nv40/nv40_shader.h with 100% similarity]
src/gallium/drivers/nv40/nv40_state.c [moved from src/mesa/pipe/nv40/nv40_state.c with 100% similarity]
src/gallium/drivers/nv40/nv40_state.h [moved from src/mesa/pipe/nv40/nv40_state.h with 100% similarity]
src/gallium/drivers/nv40/nv40_state_emit.c [moved from src/mesa/pipe/nv40/nv40_state_emit.c with 100% similarity]
src/gallium/drivers/nv40/nv40_surface.c [moved from src/mesa/pipe/nv40/nv40_surface.c with 94% similarity]
src/gallium/drivers/nv40/nv40_vbo.c [moved from src/mesa/pipe/nv40/nv40_vbo.c with 99% similarity]
src/gallium/drivers/nv40/nv40_vertprog.c [moved from src/mesa/pipe/nv40/nv40_vertprog.c with 99% similarity]
src/gallium/drivers/nv50/Makefile [moved from src/mesa/pipe/nv50/Makefile with 90% similarity]
src/gallium/drivers/nv50/nv50_clear.c [moved from src/mesa/pipe/nv50/nv50_clear.c with 100% similarity]
src/gallium/drivers/nv50/nv50_context.c [moved from src/mesa/pipe/nv50/nv50_context.c with 99% similarity]
src/gallium/drivers/nv50/nv50_context.h [moved from src/mesa/pipe/nv50/nv50_context.h with 90% similarity]
src/gallium/drivers/nv50/nv50_draw.c [moved from src/mesa/pipe/nv50/nv50_draw.c with 96% similarity]
src/gallium/drivers/nv50/nv50_miptree.c [moved from src/mesa/pipe/nv50/nv50_miptree.c with 100% similarity]
src/gallium/drivers/nv50/nv50_query.c [moved from src/mesa/pipe/nv50/nv50_query.c with 100% similarity]
src/gallium/drivers/nv50/nv50_state.c [moved from src/mesa/pipe/nv50/nv50_state.c with 100% similarity]
src/gallium/drivers/nv50/nv50_state.h [moved from src/mesa/pipe/nv50/nv50_state.h with 100% similarity]
src/gallium/drivers/nv50/nv50_surface.c [moved from src/mesa/pipe/nv50/nv50_surface.c with 91% similarity]
src/gallium/drivers/nv50/nv50_vbo.c [moved from src/mesa/pipe/nv50/nv50_vbo.c with 100% similarity]
src/gallium/winsys/dri/nouveau/Makefile [moved from src/mesa/drivers/dri/nouveau_winsys/Makefile with 77% similarity]
src/gallium/winsys/dri/nouveau/nouveau_bo.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_bo.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_channel.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_channel.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_context.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_context.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_context.h [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_context.h with 98% similarity]
src/gallium/winsys/dri/nouveau/nouveau_device.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_device.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_device.h [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_device.h with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_dma.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_dma.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_dma.h [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_dma.h with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_dri.h [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_dri.h with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_drmif.h [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_drmif.h with 96% similarity]
src/gallium/winsys/dri/nouveau/nouveau_fence.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_fence.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_grobj.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_grobj.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_local.h [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_local.h with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_lock.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_lock.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_notifier.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_notifier.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_pushbuf.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_pushbuf.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_resource.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_resource.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_screen.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_screen.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_screen.h [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_screen.h with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_swapbuffers.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_swapbuffers.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_swapbuffers.h [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_swapbuffers.h with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_winsys.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_winsys.c with 98% similarity]
src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_winsys_pipe.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_winsys_pipe.h [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_winsys_pipe.h with 100% similarity]
src/gallium/winsys/dri/nouveau/nouveau_winsys_softpipe.c [moved from src/mesa/drivers/dri/nouveau_winsys/nouveau_winsys_softpipe.c with 98% similarity]
src/gallium/winsys/dri/nouveau/nv04_surface.c [moved from src/mesa/drivers/dri/nouveau_winsys/nv04_surface.c with 100% similarity]
src/gallium/winsys/dri/nouveau/nv50_surface.c [moved from src/mesa/drivers/dri/nouveau_winsys/nv50_surface.c with 100% similarity]

index c0345a9..58df6c5 100644 (file)
@@ -6,7 +6,8 @@ ifeq ($(CONFIG_NAME), linux-cell)
 CELL_DIR = cell
 endif
 
-SUBDIRS = softpipe i915simple i965simple failover pipebuffer $(CELL_DIR)
+SUBDIRS = softpipe i915simple i965simple nv30 nv40 nv50 \
+         failover pipebuffer $(CELL_DIR)
 
 
 default: subdirs
similarity index 98%
rename from src/mesa/pipe/nouveau/nouveau_push.h
rename to src/gallium/drivers/nouveau/nouveau_push.h
index 6794726..c5c5d98 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __NOUVEAU_PUSH_H__
 #define __NOUVEAU_PUSH_H__
 
-#include "pipe/nouveau/nouveau_winsys.h"
+#include "nouveau/nouveau_winsys.h"
 
 #ifndef NOUVEAU_PUSH_CONTEXT
 #error undefined push context
similarity index 86%
rename from src/mesa/pipe/nouveau/nouveau_winsys.h
rename to src/gallium/drivers/nouveau/nouveau_winsys.h
index 818ae9a..b5e470c 100644 (file)
@@ -5,13 +5,13 @@
 #include "pipe/p_winsys.h"
 #include "pipe/p_defines.h"
 
-#include "pipe/nouveau/nouveau_bo.h"
-#include "pipe/nouveau/nouveau_channel.h"
-#include "pipe/nouveau/nouveau_class.h"
-#include "pipe/nouveau/nouveau_grobj.h"
-#include "pipe/nouveau/nouveau_notifier.h"
-#include "pipe/nouveau/nouveau_resource.h"
-#include "pipe/nouveau/nouveau_pushbuf.h"
+#include "nouveau/nouveau_bo.h"
+#include "nouveau/nouveau_channel.h"
+#include "nouveau/nouveau_class.h"
+#include "nouveau/nouveau_grobj.h"
+#include "nouveau/nouveau_notifier.h"
+#include "nouveau/nouveau_resource.h"
+#include "nouveau/nouveau_pushbuf.h"
 
 struct nouveau_winsys {
        struct nouveau_context *nv;
similarity index 92%
rename from src/mesa/pipe/nv30/Makefile
rename to src/gallium/drivers/nv30/Makefile
index dd4b7e7..b7c252f 100644 (file)
@@ -23,7 +23,7 @@ C_SOURCES = \
 
 ASM_SOURCES = 
 
-include ../Makefile.template
+include ../../Makefile.template
 
 symlinks:
 
similarity index 99%
rename from src/mesa/pipe/nv30/nv30_context.c
rename to src/gallium/drivers/nv30/nv30_context.c
index d12aab8..e9afeb8 100644 (file)
@@ -1,4 +1,4 @@
-#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"
similarity index 95%
rename from src/mesa/pipe/nv30/nv30_context.h
rename to src/gallium/drivers/nv30/nv30_context.h
index f6c6954..d6d16ee 100644 (file)
@@ -5,14 +5,14 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
 
-#include "pipe/draw/draw_vertex.h"
+#include "draw/draw_vertex.h"
 
-#include "pipe/nouveau/nouveau_winsys.h"
-#include "pipe/nouveau/nouveau_gldefs.h"
+#include "nouveau/nouveau_winsys.h"
+#include "nouveau/nouveau_gldefs.h"
 
 #define NOUVEAU_PUSH_CONTEXT(ctx)                                              \
        struct nv30_context *ctx = nv30
-#include "pipe/nouveau/nouveau_push.h"
+#include "nouveau/nouveau_push.h"
 
 #include "nv30_state.h"
 
similarity index 97%
rename from src/mesa/pipe/nv30/nv30_draw.c
rename to src/gallium/drivers/nv30/nv30_draw.c
index bdeb975..59a7265 100644 (file)
@@ -1,4 +1,4 @@
-#include "pipe/draw/draw_private.h"
+#include "draw/draw_private.h"
 #include "pipe/p_util.h"
 
 #include "nv30_context.h"
similarity index 99%
rename from src/mesa/pipe/nv30/nv30_fragprog.c
rename to src/gallium/drivers/nv30/nv30_fragprog.c
index 0db1ac8..09ad555 100644 (file)
@@ -4,8 +4,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 "nv30_context.h"
 
similarity index 94%
rename from src/mesa/pipe/nv30/nv30_surface.c
rename to src/gallium/drivers/nv30/nv30_surface.c
index 31745e3..9749656 100644 (file)
@@ -31,7 +31,7 @@
 #include "pipe/p_util.h"
 #include "pipe/p_winsys.h"
 #include "pipe/p_inlines.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 
 static boolean
 nv30_surface_format_supported(struct pipe_context *pipe,
@@ -104,9 +104,10 @@ nv30_get_tex_surface(struct pipe_context *pipe, struct pipe_texture *pt,
 }
 
 static void
-nv30_surface_copy(struct pipe_context *pipe, struct pipe_surface *dest,
-                 unsigned destx, unsigned desty, struct pipe_surface *src,
-                 unsigned srcx, unsigned srcy, unsigned width, unsigned height)
+nv30_surface_copy(struct pipe_context *pipe, unsigned do_flip,
+                 struct pipe_surface *dest, unsigned destx, unsigned desty,
+                 struct pipe_surface *src, unsigned srcx, unsigned srcy,
+                 unsigned width, unsigned height)
 {
        struct nv30_context *nv30 = nv30_context(pipe);
        struct nouveau_winsys *nvws = nv30->nvws;
similarity index 99%
rename from src/mesa/pipe/nv30/nv30_vbo.c
rename to src/gallium/drivers/nv30/nv30_vbo.c
index 57fb9bc..9e00cda 100644 (file)
@@ -5,8 +5,8 @@
 #include "nv30_context.h"
 #include "nv30_state.h"
 
-#include "pipe/nouveau/nouveau_channel.h"
-#include "pipe/nouveau/nouveau_pushbuf.h"
+#include "nouveau/nouveau_channel.h"
+#include "nouveau/nouveau_pushbuf.h"
 
 static INLINE int
 nv30_vbo_ncomp(uint format)
similarity index 99%
rename from src/mesa/pipe/nv30/nv30_vertprog.c
rename to src/gallium/drivers/nv30/nv30_vertprog.c
index c96210d..4a8269d 100644 (file)
@@ -4,7 +4,7 @@
 #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 "nv30_context.h"
 #include "nv30_state.h"
similarity index 92%
rename from src/mesa/pipe/nv40/Makefile
rename to src/gallium/drivers/nv40/Makefile
index c9c3a80..2a9de4a 100644 (file)
@@ -23,7 +23,7 @@ C_SOURCES = \
 
 ASM_SOURCES = 
 
-include ../Makefile.template
+include ../../Makefile.template
 
 symlinks:
 
similarity index 99%
rename from src/mesa/pipe/nv40/nv40_context.c
rename to src/gallium/drivers/nv40/nv40_context.c
index 6e86ca0..8b5cc69 100644 (file)
@@ -1,4 +1,4 @@
-#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"
similarity index 95%
rename from src/mesa/pipe/nv40/nv40_context.h
rename to src/gallium/drivers/nv40/nv40_context.h
index cf2a144..f511759 100644 (file)
@@ -5,15 +5,15 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
 
-#include "pipe/draw/draw_vertex.h"
+#include "draw/draw_vertex.h"
 
-#include "pipe/nouveau/nouveau_winsys.h"
-#include "pipe/nouveau/nouveau_gldefs.h"
+#include "nouveau/nouveau_winsys.h"
+#include "nouveau/nouveau_gldefs.h"
 
 #define NOUVEAU_PUSH_CONTEXT(ctx)                                              \
        struct nv40_channel_context *ctx = nv40->hw
-#include "pipe/nouveau/nouveau_push.h"
-#include "pipe/nouveau/nouveau_stateobj.h"
+#include "nouveau/nouveau_push.h"
+#include "nouveau/nouveau_stateobj.h"
 
 #include "nv40_state.h"
 
similarity index 97%
rename from src/mesa/pipe/nv40/nv40_draw.c
rename to src/gallium/drivers/nv40/nv40_draw.c
index d361d5f..a39bb85 100644 (file)
@@ -1,4 +1,4 @@
-#include "pipe/draw/draw_private.h"
+#include "draw/draw_private.h"
 #include "pipe/p_util.h"
 
 #include "nv40_context.h"
similarity index 99%
rename from src/mesa/pipe/nv40/nv40_fragprog.c
rename to src/gallium/drivers/nv40/nv40_fragprog.c
index 7487fb8..07a418c 100644 (file)
@@ -3,8 +3,8 @@
 #include "pipe/p_state.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 "nv40_context.h"
 
similarity index 94%
rename from src/mesa/pipe/nv40/nv40_surface.c
rename to src/gallium/drivers/nv40/nv40_surface.c
index d8f87d9..9726ab4 100644 (file)
@@ -31,7 +31,7 @@
 #include "pipe/p_util.h"
 #include "pipe/p_winsys.h"
 #include "pipe/p_inlines.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 
 static boolean
 nv40_surface_format_supported(struct pipe_context *pipe,
@@ -104,9 +104,10 @@ nv40_get_tex_surface(struct pipe_context *pipe, struct pipe_texture *pt,
 }
 
 static void
-nv40_surface_copy(struct pipe_context *pipe, struct pipe_surface *dest,
-                 unsigned destx, unsigned desty, struct pipe_surface *src,
-                 unsigned srcx, unsigned srcy, unsigned width, unsigned height)
+nv40_surface_copy(struct pipe_context *pipe, unsigned do_flip,
+                 struct pipe_surface *dest, unsigned destx, unsigned desty,
+                 struct pipe_surface *src, unsigned srcx, unsigned srcy,
+                 unsigned width, unsigned height)
 {
        struct nv40_context *nv40 = nv40_context(pipe);
        struct nouveau_winsys *nvws = nv40->nvws;
similarity index 99%
rename from src/mesa/pipe/nv40/nv40_vbo.c
rename to src/gallium/drivers/nv40/nv40_vbo.c
index 6b1ac65..fa827ef 100644 (file)
@@ -5,8 +5,8 @@
 #include "nv40_context.h"
 #include "nv40_state.h"
 
-#include "pipe/nouveau/nouveau_channel.h"
-#include "pipe/nouveau/nouveau_pushbuf.h"
+#include "nouveau/nouveau_channel.h"
+#include "nouveau/nouveau_pushbuf.h"
 
 static INLINE int
 nv40_vbo_ncomp(uint format)
similarity index 99%
rename from src/mesa/pipe/nv40/nv40_vertprog.c
rename to src/gallium/drivers/nv40/nv40_vertprog.c
index d57e3ca..9f4738b 100644 (file)
@@ -3,7 +3,7 @@
 #include "pipe/p_state.h"
 
 #include "pipe/p_shader_tokens.h"
-#include "pipe/tgsi/util/tgsi_parse.h"
+#include "tgsi/util/tgsi_parse.h"
 
 #include "nv40_context.h"
 #include "nv40_state.h"
similarity index 90%
rename from src/mesa/pipe/nv50/Makefile
rename to src/gallium/drivers/nv50/Makefile
index d3d011b..68eb49f 100644 (file)
@@ -19,7 +19,7 @@ C_SOURCES = \
 
 ASM_SOURCES = 
 
-include ../Makefile.template
+include ../../Makefile.template
 
 symlinks:
 
similarity index 99%
rename from src/mesa/pipe/nv50/nv50_context.c
rename to src/gallium/drivers/nv50/nv50_context.c
index 33c8eeb..3c5a54b 100644 (file)
@@ -1,4 +1,4 @@
-#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"
similarity index 90%
rename from src/mesa/pipe/nv50/nv50_context.h
rename to src/gallium/drivers/nv50/nv50_context.h
index 5491c0c..b99254f 100644 (file)
@@ -5,14 +5,14 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
 
-#include "pipe/draw/draw_vertex.h"
+#include "draw/draw_vertex.h"
 
-#include "pipe/nouveau/nouveau_winsys.h"
-#include "pipe/nouveau/nouveau_gldefs.h"
+#include "nouveau/nouveau_winsys.h"
+#include "nouveau/nouveau_gldefs.h"
 
 #define NOUVEAU_PUSH_CONTEXT(ctx)                                              \
        struct nv50_context *ctx = nv50
-#include "pipe/nouveau/nouveau_push.h"
+#include "nouveau/nouveau_push.h"
 
 #include "nv50_state.h"
 
similarity index 96%
rename from src/mesa/pipe/nv50/nv50_draw.c
rename to src/gallium/drivers/nv50/nv50_draw.c
index 85d347f..c6ed683 100644 (file)
@@ -1,4 +1,4 @@
-#include "pipe/draw/draw_private.h"
+#include "draw/draw_private.h"
 #include "pipe/p_util.h"
 
 #include "nv50_context.h"
similarity index 91%
rename from src/mesa/pipe/nv50/nv50_surface.c
rename to src/gallium/drivers/nv50/nv50_surface.c
index cfb370d..ca92ff0 100644 (file)
@@ -31,7 +31,7 @@
 #include "pipe/p_util.h"
 #include "pipe/p_winsys.h"
 #include "pipe/p_inlines.h"
-#include "pipe/util/p_tile.h"
+#include "util/p_tile.h"
 
 static struct pipe_surface *
 nv50_get_tex_surface(struct pipe_context *pipe,
@@ -43,9 +43,10 @@ nv50_get_tex_surface(struct pipe_context *pipe,
 }
 
 static void
-nv50_surface_copy(struct pipe_context *pipe, struct pipe_surface *dest,
-                 unsigned destx, unsigned desty, struct pipe_surface *src,
-                 unsigned srcx, unsigned srcy, unsigned width, unsigned height)
+nv50_surface_copy(struct pipe_context *pipe, unsigned flip,
+                 struct pipe_surface *dest, unsigned destx, unsigned desty,
+                 struct pipe_surface *src, unsigned srcx, unsigned srcy,
+                 unsigned width, unsigned height)
 {
        struct nv50_context *nv50 = (struct nv50_context *)pipe;
        struct nouveau_winsys *nvws = nv50->nvws;
similarity index 77%
rename from src/mesa/drivers/dri/nouveau_winsys/Makefile
rename to src/gallium/winsys/dri/nouveau/Makefile
index 98ec5a7..b463f21 100644 (file)
@@ -7,10 +7,10 @@ LIBNAME = nouveau_dri.so
 MINIGLX_SOURCES =
 
 PIPE_DRIVERS = \
-       $(TOP)/src/mesa/pipe/softpipe/libsoftpipe.a \
-       $(TOP)/src/mesa/pipe/nv30/libnv30.a \
-       $(TOP)/src/mesa/pipe/nv40/libnv40.a \
-       $(TOP)/src/mesa/pipe/nv50/libnv50.a
+       $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
+       $(TOP)/src/gallium/drivers/nv30/libnv30.a \
+       $(TOP)/src/gallium/drivers/nv40/libnv40.a \
+       $(TOP)/src/gallium/drivers/nv50/libnv50.a
 
 DRIVER_SOURCES = \
        nouveau_bo.c \
@@ -4,7 +4,7 @@
 #include "dri_util.h"
 #include "xmlconfig.h"
 
-#include "pipe/nouveau/nouveau_winsys.h"
+#include "nouveau/nouveau_winsys.h"
 #include "nouveau_device.h"
 #include "nouveau_drmif.h"
 #include "nouveau_dma.h"
 #include <nouveau_drm.h>
 
 #include "nouveau_device.h"
-#include "pipe/nouveau/nouveau_channel.h"
-#include "pipe/nouveau/nouveau_grobj.h"
-#include "pipe/nouveau/nouveau_notifier.h"
-#include "pipe/nouveau/nouveau_bo.h"
-#include "pipe/nouveau/nouveau_resource.h"
-#include "pipe/nouveau/nouveau_pushbuf.h"
+#include "nouveau/nouveau_channel.h"
+#include "nouveau/nouveau_grobj.h"
+#include "nouveau/nouveau_notifier.h"
+#include "nouveau/nouveau_bo.h"
+#include "nouveau/nouveau_resource.h"
+#include "nouveau/nouveau_pushbuf.h"
 
 struct nouveau_device_priv {
        struct nouveau_device base;
@@ -3,7 +3,7 @@
 #include "nouveau_context.h"
 #include "nouveau_winsys_pipe.h"
 
-#include "pipe/nouveau/nouveau_winsys.h"
+#include "nouveau/nouveau_winsys.h"
 
 static int
 nouveau_pipe_notifier_alloc(struct nouveau_winsys *nvws, int count,
@@ -33,7 +33,7 @@
 
 #include "pipe/p_defines.h"
 #include "pipe/p_format.h"
-#include "pipe/softpipe/sp_winsys.h"
+#include "softpipe/sp_winsys.h"
 
 #include "nouveau_context.h"
 #include "nouveau_winsys_pipe.h"