diff options
author | Christoph Bumiller <[email protected]> | 2011-01-08 00:49:17 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-01-08 02:13:54 +0100 |
commit | b2a79953a6e68853b44dbb20f4c0c4c67dc5f75b (patch) | |
tree | 937e5b529b36a3f18b5c6abc6cc5aa310d75d38c /src/gallium/drivers/nvc0/nvc0_context.h | |
parent | 64b639959ff95baf96be5ec835c6c1e490ff80b6 (diff) |
nvc0: upload user buffers only from draw info min to max index
There are actually applications that profit immensely from this.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_context.h')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_context.h b/src/gallium/drivers/nvc0/nvc0_context.h index 83aff0a585d..c181f15dbd8 100644 --- a/src/gallium/drivers/nvc0/nvc0_context.h +++ b/src/gallium/drivers/nvc0/nvc0_context.h @@ -101,6 +101,8 @@ struct nvc0_context { unsigned num_vtxbufs; struct pipe_index_buffer idxbuf; uint32_t vbo_fifo; + unsigned vbo_min_index; /* from pipe_draw_info, for vertex upload */ + unsigned vbo_max_index; struct pipe_sampler_view *textures[5][PIPE_MAX_SAMPLERS]; unsigned num_textures[5]; |