LIBNAME = nv30
C_SOURCES = \
- nv30_clear.c \
nv30_context.c \
nv30_draw.c \
nv30_fragprog.c \
+++ /dev/null
-#include "pipe/p_context.h"
-#include "pipe/p_defines.h"
-#include "pipe/p_state.h"
-#include "util/u_clear.h"
-
-#include "nv30_context.h"
-
-void
-nv30_clear(struct pipe_context *pipe, unsigned buffers,
- const float *rgba, double depth, unsigned stencil)
-{
- util_clear(pipe, &nvfx_context(pipe)->framebuffer, buffers, rgba, depth,
- stencil);
-}
nvfx->pipe.destroy = nv30_destroy;
nvfx->pipe.draw_arrays = nv30_draw_arrays;
nvfx->pipe.draw_elements = nv30_draw_elements;
- nvfx->pipe.clear = nv30_clear;
+ nvfx->pipe.clear = nvfx_clear;
nvfx->pipe.flush = nv30_flush;
nvfx->pipe.is_texture_referenced = nouveau_is_texture_referenced;
unsigned mode, unsigned start,
unsigned count);
-/* nv30_clear.c */
-extern void nv30_clear(struct pipe_context *pipe, unsigned buffers,
- const float *rgba, double depth, unsigned stencil);
-
/* nvfx_context.c */
struct pipe_context *
nv30_create(struct pipe_screen *pscreen, void *priv);
LIBNAME = nv40
C_SOURCES = \
- nv40_clear.c \
nv40_context.c \
nv40_draw.c \
nv40_fragprog.c \
+++ /dev/null
-#include "pipe/p_context.h"
-#include "pipe/p_defines.h"
-#include "pipe/p_state.h"
-#include "util/u_clear.h"
-
-#include "nv40_context.h"
-
-void
-nv40_clear(struct pipe_context *pipe, unsigned buffers,
- const float *rgba, double depth, unsigned stencil)
-{
- util_clear(pipe, &nvfx_context(pipe)->framebuffer, buffers, rgba, depth,
- stencil);
-}
nvfx->pipe.destroy = nv40_destroy;
nvfx->pipe.draw_arrays = nv40_draw_arrays;
nvfx->pipe.draw_elements = nv40_draw_elements;
- nvfx->pipe.clear = nv40_clear;
+ nvfx->pipe.clear = nvfx_clear;
nvfx->pipe.flush = nv40_flush;
nvfx->pipe.is_texture_referenced = nouveau_is_texture_referenced;
unsigned mode, unsigned start,
unsigned count);
-/* nv40_clear.c */
-extern void nv40_clear(struct pipe_context *pipe, unsigned buffers,
- const float *rgba, double depth, unsigned stencil);
-
/* nvfx_context.c */
struct pipe_context *
nv40_create(struct pipe_screen *pscreen, void *priv);
LIBNAME = nvfx
-nvfx_dummy.c:
- touch nvfx_dummy.c
-
-C_SOURCES = nvfx_dummy.c
+C_SOURCES = \
+ nvfx_clear.c
include ../../Makefile.template
--- /dev/null
+#include "pipe/p_context.h"
+#include "pipe/p_defines.h"
+#include "pipe/p_state.h"
+#include "util/u_clear.h"
+
+#include "nvfx_context.h"
+
+void
+nvfx_clear(struct pipe_context *pipe, unsigned buffers,
+ const float *rgba, double depth, unsigned stencil)
+{
+ util_clear(pipe, &nvfx_context(pipe)->framebuffer, buffers, rgba, depth,
+ stencil);
+}
} dirty;
};
+/* nvfx_clear.c */
+extern void nvfx_clear(struct pipe_context *pipe, unsigned buffers,
+ const float *rgba, double depth, unsigned stencil);
+
#endif