#define SVGA_BUFFER_MAX_RANGES 32
-struct svga_screen;
struct svga_context;
struct svga_winsys_buffer;
struct svga_winsys_surface;
* 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.
* a context. It is only valid if the dma.pending is set above.
*/
struct list_head head;
+
+ unsigned size; /**< Approximate size in bytes */
};
unsigned usage,
unsigned size);
-void
-svga_redefine_user_buffer(struct pipe_context *ctx,
- struct pipe_resource *resource,
- unsigned offset,
- unsigned size);
-
#endif /* SVGA_BUFFER_H */