summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga/svga_resource_buffer.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-03-09 12:39:14 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2011-03-10 14:30:50 +0100
commit6d4e337f3890105c7d8a2f132412c137d2570d25 (patch)
treedda501f467a5d7213902159cc8574628241428d0 /src/gallium/drivers/svga/svga_resource_buffer.h
parent9b7f3776359640d452697f3a487a345820abebf0 (diff)
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.h6
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 c559f70ec12..31a6fc6fef1 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