From b2a79953a6e68853b44dbb20f4c0c4c67dc5f75b Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Sat, 8 Jan 2011 00:49:17 +0100 Subject: nvc0: upload user buffers only from draw info min to max index There are actually applications that profit immensely from this. --- src/gallium/drivers/nvc0/nvc0_context.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/nvc0/nvc0_context.h') diff --git a/src/gallium/drivers/nvc0/nvc0_context.h b/src/gallium/drivers/nvc0/nvc0_context.h index 83aff0a585..c181f15dbd 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]; -- cgit v1.2.3