summaryrefslogtreecommitdiffstats
path: root/src/glx/dri3_glx.c
diff options
context:
space:
mode:
authorThomas Hellstrom <[email protected]>2017-08-11 09:57:51 +0200
committerThomas Hellstrom <[email protected]>2017-08-17 07:39:42 +0200
commit5198e48a0d9a991d897cf4c71fdb82ac0e43b025 (patch)
tree59cd9ea2252ce9f7e1ed78ffb396093732727340 /src/glx/dri3_glx.c
parent934511d1f3a8e2e9b0091d725c87a22a51233141 (diff)
loader_dri3/glx/egl: Remove the loader_dri3_vtable get_dri_screen callback
It's not very usable since in the rare, but definitely existing case that we don't have a current context, it will return NULL. Presumably it will always be safe to use the dri screen the drawable was created with for operations on that drawable. Signed-off-by: Thomas Hellstrom <[email protected]> Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/glx/dri3_glx.c')
-rw-r--r--src/glx/dri3_glx.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
index 024e8ab0479..dc947407635 100644
--- a/src/glx/dri3_glx.c
+++ b/src/glx/dri3_glx.c
@@ -116,16 +116,6 @@ glx_dri3_get_dri_context(struct loader_dri3_drawable *draw)
return (gc != &dummyContext) ? dri3Ctx->driContext : NULL;
}
-static __DRIscreen *
-glx_dri3_get_dri_screen(struct loader_dri3_drawable *draw)
-{
- struct glx_context *gc = __glXGetCurrentContext();
- struct dri3_context *pcp = (struct dri3_context *) gc;
- struct dri3_screen *psc = (struct dri3_screen *) pcp->base.psc;
-
- return (gc != &dummyContext && psc) ? psc->driScreen : NULL;
-}
-
static void
glx_dri3_flush_drawable(struct loader_dri3_drawable *draw, unsigned flags)
{
@@ -160,7 +150,6 @@ static const struct loader_dri3_vtable glx_dri3_vtable = {
.set_drawable_size = glx_dri3_set_drawable_size,
.in_current_context = glx_dri3_in_current_context,
.get_dri_context = glx_dri3_get_dri_context,
- .get_dri_screen = glx_dri3_get_dri_screen,
.flush_drawable = glx_dri3_flush_drawable,
.show_fps = glx_dri3_show_fps,
};