diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2011-03-09 12:39:14 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2011-03-10 14:30:50 +0100 |
commit | 6d4e337f3890105c7d8a2f132412c137d2570d25 (patch) | |
tree | dda501f467a5d7213902159cc8574628241428d0 /src/gallium/drivers/svga/svga_resource_buffer.h | |
parent | 9b7f3776359640d452697f3a487a345820abebf0 (diff) | |
download | external_mesa3d-6d4e337f3890105c7d8a2f132412c137d2570d25.zip external_mesa3d-6d4e337f3890105c7d8a2f132412c137d2570d25.tar.gz external_mesa3d-6d4e337f3890105c7d8a2f132412c137d2570d25.tar.bz2 |
gallium/svga: Only upload parts of vertexarrays that are actually used
Make sure we only upload parts of vertex arrays that are actually used
by a draw command.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'src/gallium/drivers/svga/svga_resource_buffer.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_buffer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_buffer.h b/src/gallium/drivers/svga/svga_resource_buffer.h index c559f70..31a6fc6 100644 --- a/src/gallium/drivers/svga/svga_resource_buffer.h +++ b/src/gallium/drivers/svga/svga_resource_buffer.h @@ -144,6 +144,12 @@ struct svga_buffer } uploaded; /** + * The offset in the source user buffer that matches the + * uploaded offset + */ + unsigned source_offset; + + /** * DMA'ble memory. * * A piece of GMR memory, with the same size of the buffer. It is created |