diff options
author | Kristian Høgsberg <[email protected]> | 2012-07-05 14:19:48 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2012-07-11 15:28:35 -0400 |
commit | 379eb47ea61c87c9ac071fa6d93e49ae3f02ac2c (patch) | |
tree | 0edd148ee5870f6dae465edb0d4908c8326e2c16 /src/egl/wayland/wayland-drm/wayland-drm.h | |
parent | 95bc0527e9f81c62cbfe02dace94e73d9950d04d (diff) |
wayland-drm: Pass struct wl_drm_buffer to the driver
We're going to extend this to support multi-plane buffers, so pass this
to the driver so it can access the details.
Diffstat (limited to 'src/egl/wayland/wayland-drm/wayland-drm.h')
-rw-r--r-- | src/egl/wayland/wayland-drm/wayland-drm.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/egl/wayland/wayland-drm/wayland-drm.h b/src/egl/wayland/wayland-drm/wayland-drm.h index bec50a5539f..f3df7eeaddd 100644 --- a/src/egl/wayland/wayland-drm/wayland-drm.h +++ b/src/egl/wayland/wayland-drm/wayland-drm.h @@ -9,14 +9,24 @@ struct wl_drm; +struct wl_drm_buffer { + struct wl_buffer buffer; + struct wl_drm *drm; + uint32_t format; + uint32_t driver_format; + int32_t offset0; + int32_t stride0; + + void *driver_buffer; +}; + struct wayland_drm_callbacks { int (*authenticate)(void *user_data, uint32_t id); - void *(*reference_buffer)(void *user_data, uint32_t name, - int32_t width, int32_t height, - uint32_t stride, uint32_t format); + void (*reference_buffer)(void *user_data, uint32_t name, + struct wl_drm_buffer *buffer); - void (*release_buffer)(void *user_data, void *buffer); + void (*release_buffer)(void *user_data, struct wl_drm_buffer *buffer); }; struct wl_drm * |