summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv04/nv04_context.h
diff options
context:
space:
mode:
authorStephane Marchesin <[email protected]>2009-02-02 02:12:46 +0100
committerStephane Marchesin <[email protected]>2009-02-02 02:12:46 +0100
commit4035e0f8989754ee7d31212e69d6461f1bbff008 (patch)
treefa7a95563d9f7795b779651e7841916cd36a5185 /src/gallium/drivers/nv04/nv04_context.h
parent462f09487efac27173c231b09861b4f5316eb11d (diff)
nv04: some old changes I had lying around.
Diffstat (limited to 'src/gallium/drivers/nv04/nv04_context.h')
-rw-r--r--src/gallium/drivers/nv04/nv04_context.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/gallium/drivers/nv04/nv04_context.h b/src/gallium/drivers/nv04/nv04_context.h
index 3e6a0852702..2842b2c90db 100644
--- a/src/gallium/drivers/nv04/nv04_context.h
+++ b/src/gallium/drivers/nv04/nv04_context.h
@@ -34,6 +34,8 @@
#define NV04_NEW_CONTROL (1 << 5)
#define NV04_NEW_VIEWPORT (1 << 6)
#define NV04_NEW_SAMPLER (1 << 7)
+#define NV04_NEW_FRAMEBUFFER (1 << 8)
+#define NV04_NEW_VTXARRAYS (1 << 9)
struct nv04_context {
struct pipe_context pipe;
@@ -61,8 +63,9 @@ struct nv04_context {
unsigned vp_samplers;
uint32_t rt_enable;
- struct pipe_buffer *rt[4];
- struct pipe_buffer *zeta;
+ struct pipe_framebuffer_state *framebuffer;
+ struct pipe_surface *rt;
+ struct pipe_surface *zeta;
struct {
struct pipe_buffer *buffer;
@@ -75,6 +78,9 @@ struct nv04_context {
unsigned delta;
} vb[16];
+ float *constbuf[PIPE_SHADER_TYPES][32][4];
+ unsigned constbuf_nr[PIPE_SHADER_TYPES];
+
struct vertex_info vertex_info;
struct {
@@ -94,9 +100,8 @@ struct nv04_context {
struct pipe_buffer *constant_buf;
} fragprog;
- struct pipe_vertex_buffer vertex_buffer[PIPE_MAX_ATTRIBS];
- unsigned num_vertex_buffers;
- unsigned num_vertex_elements;
+ struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS];
+ struct pipe_vertex_element vtxelt[PIPE_MAX_ATTRIBS];
struct pipe_viewport_state viewport;
};
@@ -109,7 +114,7 @@ nv04_context(struct pipe_context *pipe)
extern void nv04_init_state_functions(struct nv04_context *nv04);
extern void nv04_init_surface_functions(struct nv04_context *nv04);
-extern void nv04_init_miptree_functions(struct pipe_screen *screen);
+extern void nv04_screen_init_miptree_functions(struct pipe_screen *screen);
/* nv04_clear.c */
extern void nv04_clear(struct pipe_context *pipe, struct pipe_surface *ps,