summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvfx/nvfx_context.h
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-02-21 12:39:21 +0100
committerYounes Manton <younes.m@gmail.com>2010-03-15 00:03:03 -0400
commitc65a8f3ed2ab1650df38a3ed32d1e91e84b50520 (patch)
treefa29a67243fe269cd29e6e13c5241720346fbe30 /src/gallium/drivers/nvfx/nvfx_context.h
parent6e1d0fc5eba8cda4f4c8f3188f53fec6d2d2e9c3 (diff)
nv30, nv40: partially unify nv[34]0_state.c
state.c is identical except for: 1. Sampler state creation is different 2. nv40 swtnl support 3. Separate blend equations on nv40 This patch unifies nv[34]0_state.c, except the sampler state creation code.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_context.h')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_context.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_context.h b/src/gallium/drivers/nvfx/nvfx_context.h
index 8f121fe3af..ab1a1fbbe9 100644
--- a/src/gallium/drivers/nvfx/nvfx_context.h
+++ b/src/gallium/drivers/nvfx/nvfx_context.h
@@ -212,6 +212,9 @@ extern void nvfx_draw_elements_swtnl(struct pipe_context *pipe,
extern void nvfx_fragprog_destroy(struct nvfx_context *,
struct nvfx_fragment_program *);
+/* nvfx_state.c */
+extern void nvfx_init_state_functions(struct nvfx_context *nvfx);
+
/* nvfx_state_emit.c */
extern void nvfx_state_flush_notify(struct nouveau_channel *chan);
extern boolean nvfx_state_validate(struct nvfx_context *nvfx);
@@ -230,4 +233,9 @@ extern void nvfx_draw_elements(struct pipe_context *pipe,
unsigned mode, unsigned start,
unsigned count);
+/* nvfx_vertprog.c */
+extern void nv30_vertprog_destroy(struct nvfx_context *,
+ struct nvfx_vertex_program *);
+extern void nv40_vertprog_destroy(struct nvfx_context *,
+ struct nvfx_vertex_program *);
#endif