nv30_context.h revision f9eafeca297497a94c438ea28ed59f3a45ed2566
1#ifndef __NV30_CONTEXT_H__
2#define __NV30_CONTEXT_H__
3
4#include "nvfx_context.h"
5
6extern void nv30_init_state_functions(struct nvfx_context *nvfx);
7
8/* nv30_vertprog.c */
9extern void nv30_vertprog_destroy(struct nvfx_context *,
10				  struct nvfx_vertex_program *);
11
12/* nv30_fragtex.c */
13extern void nv30_fragtex_bind(struct nvfx_context *);
14
15/* nv30_state.c and friends */
16extern struct nvfx_state_entry nv30_state_vertprog;
17extern struct nvfx_state_entry nv30_state_fragtex;
18extern struct nvfx_state_entry nv30_state_vbo;
19
20/* nv30_vbo.c */
21extern void nv30_draw_arrays(struct pipe_context *, unsigned mode,
22				unsigned start, unsigned count);
23extern void nv30_draw_elements(struct pipe_context *pipe,
24				  struct pipe_buffer *indexBuffer,
25				  unsigned indexSize,
26				  unsigned mode, unsigned start,
27				  unsigned count);
28
29/* nvfx_context.c */
30struct pipe_context *
31nv30_create(struct pipe_screen *pscreen, void *priv);
32
33#endif
34