mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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 <emil.l.velikov@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
2bd9116b82
commit
6b152ee7b6
1 changed files with 17 additions and 0 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue