From 0247e5ee3edd546b8598082d5b45d110f61853d0 Mon Sep 17 00:00:00 2001 From: Martin Peres Date: Thu, 6 Oct 2016 17:07:22 +0300 Subject: loader/dri3: add get_dri_screen() to the vtable This allows querying the current active screen from the loader's common code. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Emil Velikov Signed-off-by: Martin Peres --- src/loader/loader_dri3_helper.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/loader/loader_dri3_helper.h') diff --git a/src/loader/loader_dri3_helper.h b/src/loader/loader_dri3_helper.h index 5b8fd1d24ca..658e190a3d7 100644 --- a/src/loader/loader_dri3_helper.h +++ b/src/loader/loader_dri3_helper.h @@ -103,6 +103,7 @@ struct loader_dri3_vtable { void (*set_drawable_size)(struct loader_dri3_drawable *, int, int); bool (*in_current_context)(struct loader_dri3_drawable *); __DRIcontext *(*get_dri_context)(struct loader_dri3_drawable *); + __DRIscreen *(*get_dri_screen)(struct loader_dri3_drawable *); void (*flush_drawable)(struct loader_dri3_drawable *, unsigned); void (*show_fps)(struct loader_dri3_drawable *, uint64_t); }; -- cgit v1.2.3