diff options
author | Ben Skeggs <[email protected]> | 2008-04-02 13:04:06 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2008-04-02 13:04:06 +1000 |
commit | ae87909d0d261d0f4e888f6a167e6329eb129a87 (patch) | |
tree | 64ede4f922e6be4d2814ec63e06c75a6b2d13013 /src/gallium/drivers/nv40/nv40_context.h | |
parent | bdf5b23bfd222ade9b3599ebd0f8932a5179431e (diff) |
nv40: only update draw module state when using swtnl
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_context.h')
-rw-r--r-- | src/gallium/drivers/nv40/nv40_context.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv40/nv40_context.h b/src/gallium/drivers/nv40/nv40_context.h index b50f6f8fefc..525eef8d63d 100644 --- a/src/gallium/drivers/nv40/nv40_context.h +++ b/src/gallium/drivers/nv40/nv40_context.h @@ -133,7 +133,7 @@ struct nv40_context { unsigned fallback_swrast; /* Context state */ - unsigned dirty; + unsigned dirty, draw_dirty; struct pipe_scissor_state scissor; unsigned stipple[32]; struct pipe_clip_state clip; @@ -153,8 +153,10 @@ struct nv40_context { unsigned nr_samplers; unsigned nr_textures; unsigned dirty_samplers; - struct pipe_vertex_buffer vtxbuf[PIPE_ATTRIB_MAX]; + struct pipe_vertex_buffer vtxbuf[PIPE_ATTRIB_MAX]; + unsigned vtxbuf_nr; struct pipe_vertex_element vtxelt[PIPE_ATTRIB_MAX]; + unsigned vtxelt_nr; }; static INLINE struct nv40_context * |