svga: Fix multiple uploads of the same user-buffer.
[mesa.git] / src / gallium / drivers / svga / svga_resource_buffer.h
index 69d6f72a11c0ae6e9f2106e0b83c8cf22104fa2a..ca8c8d1f5ea3a37d5d47fe939aa17922667d85df 100644 (file)
@@ -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.