Mesa (master): egl: restore surface type before linking config to its display

Emil Velikov evelikov at kemper.freedesktop.org
Wed Oct 7 14:13:47 UTC 2015


Module: Mesa
Branch: master
Commit: f988eff37991272b3e685112136a8b2ae06386bf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f988eff37991272b3e685112136a8b2ae06386bf

Author: Varad Gautam <varadgautam at gmail.com>
Date:   Wed Oct  7 10:06:14 2015 +0530

egl: restore surface type before linking config to its display

commit c2c2e9a (egl: implement EGL_KHR_gl_colorspace (v2)) leaves
_EGLConfig->SurfaceType set incorrectly before calling _eglLinkConfig(),
and the bad value is passed around to platform_android. set it to zero
as earlier.

v2: Set SurfaceType to 0, rather than surface_type (Suggested by Emil)

Cc: mesa-stable at lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91596
Signed-off-by: Varad Gautam <varadgautam at gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>

---

 src/egl/drivers/dri2/egl_dri2.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 53f21a8..aff2181 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -313,6 +313,8 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
          else
             conf->dri_single_config = dri_config;
       }
+
+      conf->base.SurfaceType = 0;
       conf->base.ConfigID = config_id;
 
       _eglLinkConfig(&conf->base);




More information about the mesa-commit mailing list