nv30, nv40: fully unify nv[34]0_context.h
authorLuca Barbieri <luca@luca-barbieri.com>
Sun, 21 Feb 2010 13:38:04 +0000 (14:38 +0100)
committerYounes Manton <younes.m@gmail.com>
Mon, 15 Mar 2010 04:03:03 +0000 (00:03 -0400)
Move the remaining content to the common header.

src/gallium/drivers/nv30/nv30_context.c
src/gallium/drivers/nv30/nv30_context.h [deleted file]
src/gallium/drivers/nv30/nv30_fragtex.c
src/gallium/drivers/nv40/nv40_context.c
src/gallium/drivers/nv40/nv40_context.h [deleted file]
src/gallium/drivers/nv40/nv40_fragtex.c
src/gallium/drivers/nvfx/nvfx_context.h
src/gallium/drivers/nvfx/nvfx_screen.c
src/gallium/drivers/nvfx/nvfx_state_emit.c

index 9ddb331e7498466d96fc410bfe6d9fe39a28f133..7e3fd83ee0aa3580110e4fe301befb61ffccd01a 100644 (file)
@@ -1,7 +1,7 @@
 #include "draw/draw_context.h"
 #include "pipe/p_defines.h"
 
-#include "nv30_context.h"
+#include "nvfx_context.h"
 #include "nvfx_screen.h"
 
 static void
diff --git a/src/gallium/drivers/nv30/nv30_context.h b/src/gallium/drivers/nv30/nv30_context.h
deleted file mode 100644 (file)
index eacbb17..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef __NV30_CONTEXT_H__
-#define __NV30_CONTEXT_H__
-
-#include "nvfx_context.h"
-
-/* nv30_fragtex.c */
-extern void nv30_fragtex_bind(struct nvfx_context *);
-extern struct nvfx_state_entry nv30_state_fragtex;
-
-/* nvfx_context.c */
-struct pipe_context *
-nv30_create(struct pipe_screen *pscreen, void *priv);
-
-#endif
index 34e7dd544454ff8b67420e2c2a3bea7dffe9efef..ab39dedae6bc538a86de2e43c9d5449bc60f64e7 100644 (file)
@@ -1,6 +1,6 @@
 #include "util/u_format.h"
 
-#include "nv30_context.h"
+#include "nvfx_context.h"
 #include "nouveau/nouveau_util.h"
 
 #define _(m,tf,ts0x,ts0y,ts0z,ts0w,ts1x,ts1y,ts1z,ts1w)                        \
index 13bd50dd1dcc3958bf63a3c45e2264a8b9a90a43..5a526423ac46d4202027b5f538afd36cf184541e 100644 (file)
@@ -1,7 +1,7 @@
 #include "draw/draw_context.h"
 #include "pipe/p_defines.h"
 
-#include "nv40_context.h"
+#include "nvfx_context.h"
 #include "nvfx_screen.h"
 
 static void
diff --git a/src/gallium/drivers/nv40/nv40_context.h b/src/gallium/drivers/nv40/nv40_context.h
deleted file mode 100644 (file)
index 8dc87e4..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef __NV40_CONTEXT_H__
-#define __NV40_CONTEXT_H__
-
-#include "nvfx_context.h"
-
-/* nv40_fragtex.c */
-extern void nv40_fragtex_bind(struct nvfx_context *);
-extern struct nvfx_state_entry nv40_state_fragtex;
-
-/* nvfx_context.c */
-struct pipe_context *
-nv40_create(struct pipe_screen *pscreen, void *priv);
-
-#endif
index 0b46a5313bd98a4698b9b6118bf52647caf8ad9a..29257173b82345da66d1eb973b0f2f781c9f536a 100644 (file)
@@ -1,6 +1,5 @@
 #include "util/u_format.h"
-
-#include "nv40_context.h"
+#include "nvfx_context.h"
 
 #define _(m,tf,ts0x,ts0y,ts0z,ts0w,ts1x,ts1y,ts1z,ts1w,sx,sy,sz,sw)            \
 {                                                                              \
index 9a4b4631b54e726de0134f169dae5895026b0312..46cc7362eabaac9c99c17f85a5f5989cafa304e9 100644 (file)
@@ -198,6 +198,14 @@ extern struct nvfx_state_entry nvfx_state_zsa;
 extern void nvfx_init_query_functions(struct nvfx_context *nvfx);
 extern void nvfx_init_surface_functions(struct nvfx_context *nvfx);
 
+/* nv30_context.c */
+struct pipe_context *
+nv30_create(struct pipe_screen *pscreen, void *priv);
+
+/* nv40_context.c */
+struct pipe_context *
+nv40_create(struct pipe_screen *pscreen, void *priv);
+
 /* nvfx_clear.c */
 extern void nvfx_clear(struct pipe_context *pipe, unsigned buffers,
                       const float *rgba, double depth, unsigned stencil);
@@ -213,6 +221,16 @@ extern void nvfx_draw_elements_swtnl(struct pipe_context *pipe,
 extern void nvfx_fragprog_destroy(struct nvfx_context *,
                                    struct nvfx_fragment_program *);
 
+/* nv30_fragtex.c */
+extern void nv30_init_sampler_functions(struct nvfx_context *nvfx);
+extern void nv30_fragtex_bind(struct nvfx_context *);
+extern struct nvfx_state_entry nv30_state_fragtex;
+
+/* nv40_fragtex.c */
+extern void nv40_init_sampler_functions(struct nvfx_context *nvfx);
+extern void nv40_fragtex_bind(struct nvfx_context *);
+extern struct nvfx_state_entry nv40_state_fragtex;
+
 /* nvfx_state.c */
 extern void nvfx_init_state_functions(struct nvfx_context *nvfx);
 
index 6132cf94e2cda1fd92481828e2c4f68fb4d0272c..0c906ecb1d1531f73c28e1228ab69f29c7c63d15 100644 (file)
@@ -3,8 +3,7 @@
 
 #include "nouveau/nouveau_screen.h"
 
-#include "nv30/nv30_context.h"
-#include "nv40/nv40_context.h"
+#include "nvfx_context.h"
 #include "nvfx_screen.h"
 
 #define NV30TCL_CHIPSET_3X_MASK 0x00000003
index fcbf8310501a9586166bfb3d2001c0b8989ddb30..9d28b590746877aaf6e6a1f455216f4a6bf06822 100644 (file)
@@ -1,5 +1,4 @@
-#include "nv30/nv30_context.h"
-#include "nv40/nv40_context.h"
+#include "nvfx_context.h"
 #include "nvfx_state.h"
 #include "draw/draw_context.h"