Mesa (master): egl: set EGL_BAD_NATIVE_PIXMAP in the copy_buffers fallback

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 7 17:03:52 UTC 2018


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

Author: Emil Velikov <emil.velikov at collabora.com>
Date:   Wed Jun 27 20:07:20 2018 +0100

egl: set EGL_BAD_NATIVE_PIXMAP in the copy_buffers fallback

As the spec says:

  EGL_BAD_NATIVE_PIXMAP is generated if the implementation
  does not support native pixmaps.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>

---

 src/egl/drivers/dri2/egl_dri2_fallbacks.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/egl/drivers/dri2/egl_dri2_fallbacks.h b/src/egl/drivers/dri2/egl_dri2_fallbacks.h
index a664677572..1482f17d47 100644
--- a/src/egl/drivers/dri2/egl_dri2_fallbacks.h
+++ b/src/egl/drivers/dri2/egl_dri2_fallbacks.h
@@ -25,6 +25,7 @@
 #ifndef EGL_DRI2_FALLBACKS_INCLUDED
 #define EGL_DRI2_FALLBACKS_INCLUDED
 
+#include "eglcurrent.h"
 #include "egltypedefs.h"
 
 struct wl_buffer;
@@ -86,7 +87,7 @@ dri2_fallback_copy_buffers(_EGLDriver *drv, _EGLDisplay *dpy,
                            _EGLSurface *surf,
                            void *native_pixmap_target)
 {
-   return EGL_FALSE;
+   return _eglError(EGL_BAD_NATIVE_PIXMAP, "no support for native pixmaps");
 }
 
 static inline EGLBoolean




More information about the mesa-commit mailing list