st/drm: Seperate get handle for global buffer ids
authorJakob Bornecrantz <wallbraker@gmail.com>
Fri, 27 Feb 2009 02:25:08 +0000 (03:25 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Fri, 27 Feb 2009 02:35:01 +0000 (03:35 +0100)
src/gallium/include/state_tracker/drm_api.h

index 588fa3a312c4f87eb51dd3eda4e931800625ab16..cfed8d7b248a2cfaefc4cb6ea21ddf5fec776375 100644 (file)
@@ -22,9 +22,18 @@ struct drm_api
         * Special buffer functions
         */
        /*@{*/
-       boolean (*buffer_from_texture)(struct pipe_texture *texture, struct pipe_buffer **buffer, unsigned *stride);
-       struct pipe_buffer* (*buffer_from_handle)(struct pipe_screen *screen, const char *name, unsigned handle);
-       unsigned (*handle_from_buffer)(struct pipe_screen *screen, struct pipe_buffer *buffer);
+       boolean (*buffer_from_texture)(struct pipe_texture *texture,
+                                       struct pipe_buffer **buffer,
+                                       unsigned *stride);
+       struct pipe_buffer* (*buffer_from_handle)(struct pipe_screen *screen,
+                                                  const char *name,
+                                                  unsigned handle);
+       boolean (*handle_from_buffer)(struct pipe_screen *screen,
+                                      struct pipe_buffer *buffer,
+                                      unsigned *handle);
+       boolean (*global_handle_from_buffer)(struct pipe_screen *screen,
+                                             struct pipe_buffer *buffer,
+                                             unsigned *handle);
        /*@}*/
 };