[PATCH 3/8] glamor: Stop calling eglMakeCurrent (.., EGL_NO_SURFACE)

Keith Packard keithp at keithp.com
Tue Apr 1 20:54:17 PDT 2014


This eliminates a huge cost when using EGL.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 glamor/glamor_egl.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c
index 8123421..0248efa 100644
--- a/glamor/glamor_egl.c
+++ b/glamor/glamor_egl.c
@@ -116,9 +116,6 @@ glamor_egl_put_context(struct glamor_context *glamor_ctx)
 {
     if (--glamor_ctx->get_count)
         return;
-
-    eglMakeCurrent(glamor_ctx->display, EGL_NO_SURFACE,
-                   EGL_NO_SURFACE, EGL_NO_CONTEXT);
 }
 
 static EGLImageKHR
-- 
1.9.0



More information about the xorg-devel mailing list