nv30_context.h revision cd0d03adab65a9586e0c5d60e9ee487677914f3b
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_draw.c */ 9extern struct draw_stage *nv30_draw_render_stage(struct nvfx_context *nvfx); 10 11/* nv30_vertprog.c */ 12extern void nv30_vertprog_destroy(struct nvfx_context *, 13 struct nvfx_vertex_program *); 14 15/* nv30_fragprog.c */ 16extern void nv30_fragprog_destroy(struct nvfx_context *, 17 struct nvfx_fragment_program *); 18 19/* nv30_fragtex.c */ 20extern void nv30_fragtex_bind(struct nvfx_context *); 21 22/* nv30_state.c and friends */ 23extern struct nvfx_state_entry nv30_state_fragprog; 24extern struct nvfx_state_entry nv30_state_vertprog; 25extern struct nvfx_state_entry nv30_state_fragtex; 26extern struct nvfx_state_entry nv30_state_vbo; 27 28/* nv30_vbo.c */ 29extern void nv30_draw_arrays(struct pipe_context *, unsigned mode, 30 unsigned start, unsigned count); 31extern void nv30_draw_elements(struct pipe_context *pipe, 32 struct pipe_buffer *indexBuffer, 33 unsigned indexSize, 34 unsigned mode, unsigned start, 35 unsigned count); 36 37/* nvfx_context.c */ 38struct pipe_context * 39nv30_create(struct pipe_screen *pscreen, void *priv); 40 41#endif 42