summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_resource_buffer.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-06-30 08:52:19 +0200
committerThomas Hellstrom <thellstrom@vmware.com>2011-07-01 13:30:41 +0200
commit542194251c36e88601cb20b96a4094da5d0ae675 (patch)
tree28592a4f56d161647dadd867e8b20b15c64cfc78 /src/gallium/drivers/svga/svga_resource_buffer.h
parenta8cf4b6acf9ee996090cc0bb95fa3558b481108c (diff)
downloadexternal_mesa3d-542194251c36e88601cb20b96a4094da5d0ae675.zip
external_mesa3d-542194251c36e88601cb20b96a4094da5d0ae675.tar.gz
external_mesa3d-542194251c36e88601cb20b96a4094da5d0ae675.tar.bz2
svga: Fix multiple uploads of the same user-buffer.
If a user-buffer was referenced twice by a draw command, the affected ranges were uploaded separately, with only the last one being referenced by the hardware. Make sure we upload only a single range. 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.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_buffer.h b/src/gallium/drivers/svga/svga_resource_buffer.h
index 69d6f72..ca8c8d1 100644
--- a/src/gallium/drivers/svga/svga_resource_buffer.h
+++ b/src/gallium/drivers/svga/svga_resource_buffer.h
@@ -129,14 +129,13 @@ struct svga_buffer
* is the relative offset within that buffer.
*/
unsigned offset;
- } uploaded;
- /**
- * For user buffers, this is the offset to the data about to be
- * referenced by the next draw command, and hence the data that needs
- * to be uploaded.
- */
- unsigned source_offset;
+ /**
+ * Range of user buffer that is uploaded in @buffer at @offset.
+ */
+ unsigned start;
+ unsigned end;
+ } uploaded;
/**
* DMA'ble memory.