diff options
author | Roland Scheidegger <[email protected]> | 2010-03-01 20:11:36 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2010-03-01 20:11:36 +0100 |
commit | 5bf4ff7dabfffd0018382d440682bd5f7d418606 (patch) | |
tree | 66e7e2741813a95d3edc4d5cf3f5468abcbe6905 /src/gallium/drivers/nv30/nv30_context.h | |
parent | 881be308360ec8019f17bc970bece23e9395134f (diff) |
nv30: adapt to vertex element cso
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_context.h')
-rw-r--r-- | src/gallium/drivers/nv30/nv30_context.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv30/nv30_context.h b/src/gallium/drivers/nv30/nv30_context.h index ca3d6aca7fa..e48f531b942 100644 --- a/src/gallium/drivers/nv30/nv30_context.h +++ b/src/gallium/drivers/nv30/nv30_context.h @@ -108,6 +108,11 @@ struct nv30_state { struct nouveau_stateobj *hw[NV30_STATE_MAX]; }; +struct nv30_vtxelt_state { + struct pipe_vertex_element pipe[16]; + unsigned num_elements; +}; + struct nv30_context { struct pipe_context pipe; @@ -143,8 +148,7 @@ struct nv30_context { unsigned dirty_samplers; struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; unsigned vtxbuf_nr; - struct pipe_vertex_element vtxelt[PIPE_MAX_ATTRIBS]; - unsigned vtxelt_nr; + struct nv30_vtxelt_state *vtxelt; }; static INLINE struct nv30_context * |