Mesa (staging/19.1): egl: Quiet warning about front buffer rendering for pixmaps/pbuffers

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 23 11:52:26 UTC 2019


Module: Mesa
Branch: staging/19.1
Commit: 43f62d2003d13b138ea0587b9ed19cbc4d26da76
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=43f62d2003d13b138ea0587b9ed19cbc4d26da76

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Fri Jun 28 10:11:01 2019 -0700

egl: Quiet warning about front buffer rendering for pixmaps/pbuffers

pbuffer configs cause a million of these warnings to trigger, but
when using pixmaps or buffers, there is only one surface, so this
warning doesn't make much sense.  Retain it for window surfaces for now.

Fixes: dacb11a585f ("egl: Add a 565 pbuffer-only EGL config under X11.")
Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
(cherry picked from commit fc21394bc4d4e5c3ec06675bbb26974e5550c385)

---

 src/egl/drivers/dri2/platform_x11_dri3.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/egl/drivers/dri2/platform_x11_dri3.c b/src/egl/drivers/dri2/platform_x11_dri3.c
index 189212745ce..04c041cac9b 100644
--- a/src/egl/drivers/dri2/platform_x11_dri3.c
+++ b/src/egl/drivers/dri2/platform_x11_dri3.c
@@ -402,13 +402,15 @@ dri3_create_image_khr(_EGLDriver *drv, _EGLDisplay *disp,
 static void
 dri3_flush_front_buffer(__DRIdrawable *driDrawable, void *loaderPrivate)
 {
+   struct loader_dri3_drawable *draw = loaderPrivate;
+   (void) driDrawable;
+
    /* There does not seem to be any kind of consensus on whether we should
     * support front-buffer rendering or not:
     * http://lists.freedesktop.org/archives/mesa-dev/2013-June/040129.html
     */
-   _eglLog(_EGL_WARNING, "FIXME: egl/x11 doesn't support front buffer rendering.");
-   (void) driDrawable;
-   (void) loaderPrivate;
+   if (!draw->is_pixmap)
+      _eglLog(_EGL_WARNING, "FIXME: egl/x11 doesn't support front buffer rendering.");
 }
 
 const __DRIimageLoaderExtension dri3_image_loader_extension = {




More information about the mesa-commit mailing list