summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv30/nv30_context.h
diff options
context:
space:
mode:
authorPatrice Mandin <[email protected]>2008-07-11 23:17:47 +0200
committerPatrice Mandin <[email protected]>2008-07-11 23:17:47 +0200
commitc7086277546d065eb94ba8dbeca1620605f167ea (patch)
treec268d20322bf8989df4797ffece8349b5eaaf496 /src/gallium/drivers/nv30/nv30_context.h
parent5acbd0b0961089f9553adbe9b3d1341997ccb220 (diff)
nv30: Move constant buffers out of vert/frag prog structures
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_context.h')
-rw-r--r--src/gallium/drivers/nv30/nv30_context.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/nv30/nv30_context.h b/src/gallium/drivers/nv30/nv30_context.h
index 72f803c80ad..c3c8b733090 100644
--- a/src/gallium/drivers/nv30/nv30_context.h
+++ b/src/gallium/drivers/nv30/nv30_context.h
@@ -124,6 +124,8 @@ struct nv30_context {
unsigned dirty;
struct pipe_scissor_state scissor;
unsigned stipple[32];
+ struct pipe_buffer *constbuf[PIPE_SHADER_TYPES];
+ unsigned constbuf_nr[PIPE_SHADER_TYPES];
struct nv30_rasterizer_state *rasterizer;
struct nv30_zsa_state *zsa;
struct nv30_blend_state *blend;
@@ -150,16 +152,12 @@ struct nv30_context {
struct {
struct nv30_vertex_program *active;
-
struct nv30_vertex_program *current;
- struct pipe_buffer *constant_buf;
} vertprog;
struct {
struct nv30_fragment_program *active;
-
struct nv30_fragment_program *current;
- struct pipe_buffer *constant_buf;
} fragprog;
struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS];