gallium/svga: Upload only parts of user-buffers that we actually use
[mesa.git] / src / gallium / drivers / svga / svga_resource_buffer.h
index 95032213fa50767ddc3c982add1a5ac7a6dff9c1..2ae44d2a5e954ddc5feace08f64ab229862905d8 100644 (file)
@@ -131,6 +131,13 @@ struct svga_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;
+
    /**
     * DMA'ble memory.
     *