diff options
author | Jakob Bornecrantz <wallbraker@gmail.com> | 2009-02-25 01:52:38 +0100 |
---|---|---|
committer | Jakob Bornecrantz <wallbraker@gmail.com> | 2009-02-25 02:00:29 +0100 |
commit | 25b32eb8d00e303958497df9211ec2c45268b6af (patch) | |
tree | f93a3152f486dcc1085babe838be28a630a7844e /src/gallium | |
parent | f0d09bfc1cb775ba6f9c0c3899f4ee5afa26ee46 (diff) |
st/drm: Bring drm_api.h up to date with latest changes
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/include/state_tracker/drm_api.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gallium/include/state_tracker/drm_api.h b/src/gallium/include/state_tracker/drm_api.h index 54480fa047..588fa3a312 100644 --- a/src/gallium/include/state_tracker/drm_api.h +++ b/src/gallium/include/state_tracker/drm_api.h @@ -4,12 +4,14 @@ struct pipe_screen; struct pipe_winsys; +struct pipe_buffer; struct pipe_context; +struct pipe_texture; struct drm_api { /** - * Special buffer function + * Special buffer functions */ /*@{*/ struct pipe_screen* (*create_screen)(int drmFB, int pciID); @@ -17,11 +19,12 @@ struct drm_api /*@}*/ /** - * Special buffer function + * Special buffer functions */ /*@{*/ - struct pipe_buffer* (*buffer_from_handle)(struct pipe_winsys *winsys, const char *name, unsigned handle); - unsigned (*handle_from_buffer)(struct pipe_winsys *winsys, 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); + unsigned (*handle_from_buffer)(struct pipe_screen *screen, struct pipe_buffer *buffer); /*@}*/ }; |