diff options
author | Emil Velikov <[email protected]> | 2015-11-06 22:34:01 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-11-20 10:58:41 +0000 |
commit | 6b152ee7b6121f661cdcfdfafa547457dc27b921 (patch) | |
tree | 0659641e375b331a1e79c831f20f93beafb3aa73 /src/gallium/auxiliary/vl | |
parent | 2bd9116b8249fdb1711335711f8daef5f68752a6 (diff) |
auxiliary/vl: add dispatch table
As mentioned previously, it will allow us to use different vl backend in
a generic way from either video state-tracker.
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/vl')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_winsys.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/vl/vl_winsys.h b/src/gallium/auxiliary/vl/vl_winsys.h index 9aa65ad3200..29da3203a39 100644 --- a/src/gallium/auxiliary/vl/vl_winsys.h +++ b/src/gallium/auxiliary/vl/vl_winsys.h @@ -42,6 +42,23 @@ struct pipe_loader_device; struct vl_screen { + void (*destroy)(struct vl_screen *vscreen); + + struct pipe_resource * + (*texture_from_drawable)(struct vl_screen *vscreen, void *drawable); + + struct u_rect * + (*get_dirty_area)(struct vl_screen *vscreen); + + uint64_t + (*get_timestamp)(struct vl_screen *vscreen, void *drawable); + + void + (*set_next_timestamp)(struct vl_screen *vscreen, uint64_t stamp); + + void * + (*get_private)(struct vl_screen *vscreen); + struct pipe_screen *pscreen; struct pipe_loader_device *dev; }; |