Mesa (master): glx: Downgrade aux-buffer-ful fbconfigs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 8 22:23:51 UTC 2021


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

Author: Adam Jackson <ajax at redhat.com>
Date:   Tue Apr  6 15:54:28 2021 -0400

glx: Downgrade aux-buffer-ful fbconfigs

Mesa's never supported this, but NVIDIA does, on every fbconfig. Just
disable it if we see it.

Acked-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1648>

---

 src/glx/dri_common.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c
index beb5c8a0ff7..b1378698222 100644
--- a/src/glx/dri_common.c
+++ b/src/glx/dri_common.c
@@ -255,6 +255,18 @@ driConfigEqual(const __DRIcoreExtension *core,
          }
          break;
 
+      case __DRI_ATTRIB_AUX_BUFFERS:
+         if (!scalarEqual(config, attrib, value)) {
+            static int warned;
+            if (!warned) {
+               dri_message(_LOADER_DEBUG,
+                           "Disabling server's aux buffer support\n");
+               warned = 1;
+            }
+            config->numAuxBuffers = 0;
+         }
+         break;
+
       default:
          if (!scalarEqual(config, attrib, value))
             return GL_FALSE;



More information about the mesa-commit mailing list