i915g: Change order of buffer_write arguments
authorJakob Bornecrantz <wallbraker@gmail.com>
Wed, 7 Oct 2009 02:26:03 +0000 (03:26 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Wed, 7 Oct 2009 12:48:32 +0000 (13:48 +0100)
They now follow the pipe_buffer_write style,
its the gallium driver that sets the interface not
the winsys.

src/gallium/drivers/i915/intel_winsys.h
src/gallium/winsys/drm/intel/gem/intel_drm_buffer.c

index 42c5e7470ec4700c1b9c83561c73e5989eacf265..2c8dc63f3f961dab159ee43d7bb8971c2e1a3133 100644 (file)
@@ -153,13 +153,13 @@ struct intel_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);
index 327e19fcd68ed503763de5c5dff518211236ec03..ac4dd6e00e94ca2e8844131cffdf70a5237b3570 100644 (file)
@@ -119,9 +119,9 @@ intel_drm_buffer_unmap(struct intel_winsys *iws,
 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);