summaryrefslogtreecommitdiff
path: root/src/loader
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2016-10-06 17:07:22 +0300
committerMartin Peres <martin.peres@linux.intel.com>2016-10-07 11:11:44 +0300
commit0247e5ee3edd546b8598082d5b45d110f61853d0 (patch)
tree428c1747d1b7fb8a49569c9bde6a0e2ffec63e96 /src/loader
parent82b4f1c47b1d6ca326dbd863253d89337f565309 (diff)
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 <emil.velikov@collabora.com> Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
Diffstat (limited to 'src/loader')
-rw-r--r--src/loader/loader_dri3_helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/loader/loader_dri3_helper.h b/src/loader/loader_dri3_helper.h
index 5b8fd1d24c..658e190a3d 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);
};