They now follow the pipe_buffer_write style,
its the gallium driver that sets the interface not
the winsys.
/**
* Write to a buffer.
*
- * Arguments follows pwrite(2)
+ * Arguments follows pipe_buffer_write.
*/
int (*buffer_write)(struct intel_winsys *iws,
struct intel_buffer *dst,
- const void *src,
+ size_t offset,
size_t size,
- size_t offset);
+ const void *data);
void (*buffer_destroy)(struct intel_winsys *iws,
struct intel_buffer *buffer);
static int
intel_drm_buffer_write(struct intel_winsys *iws,
struct intel_buffer *buffer,
- const void *data,
+ size_t offset,
size_t size,
- size_t offset)
+ const void *data)
{
struct intel_drm_buffer *buf = intel_drm_buffer(buffer);