diff options
author | Christoph Bumiller <[email protected]> | 2012-03-16 17:37:32 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-04-14 06:14:21 +0200 |
commit | edbfeed56f1ebd8517840ef48f8c87e24bb98157 (patch) | |
tree | 091d7e779b814713c0201813e9a3fed3153a9c6f /src/gallium/drivers/nvc0/nvc0_context.h | |
parent | 784f49e69624cba07616fd5a22ccb80ad3b5111b (diff) |
nvc0: improve vertex state validation
Now updating vertex attribute format only when necessary.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_context.h')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_context.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_context.h b/src/gallium/drivers/nvc0/nvc0_context.h index fdb58898ebd..8b80f2fe386 100644 --- a/src/gallium/drivers/nvc0/nvc0_context.h +++ b/src/gallium/drivers/nvc0/nvc0_context.h @@ -84,6 +84,8 @@ struct nvc0_context { boolean prim_restart; uint32_t instance_elts; /* bitmask of per-instance elements */ uint32_t instance_base; + uint32_t constant_vbos; + uint32_t constant_elts; int32_t index_bias; uint16_t scissor; uint8_t num_vtxbufs; @@ -115,6 +117,7 @@ struct nvc0_context { struct pipe_vertex_buffer vtxbuf[PIPE_MAX_ATTRIBS]; unsigned num_vtxbufs; struct pipe_index_buffer idxbuf; + uint32_t constant_vbos; uint32_t vbo_fifo; /* bitmask of vertex elements to be pushed to FIFO */ uint32_t vbo_user; /* bitmask of vertex buffers pointing to user memory */ unsigned vbo_min_index; /* from pipe_draw_info, for vertex upload */ @@ -240,7 +243,7 @@ nvc0_vertex_state_create(struct pipe_context *pipe, void nvc0_vertex_state_delete(struct pipe_context *pipe, void *hwcso); -void nvc0_vertex_arrays_validate(struct nvc0_context *nvc0); +void nvc0_vertex_arrays_validate(struct nvc0_context *); void nvc0_idxbuf_validate(struct nvc0_context *); |