[Mesa-dev] [PATCH RFC 3/4] st/dri: Allow gallium drivers to turn off two GLX extensions

Thomas Hellstrom thellstrom at vmware.com
Fri May 5 14:02:23 UTC 2017


Allow gallium drivers to turn off GLX_EXT_buffer_age and
GLX_OML_sync_control if needed, using driconf.

Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
---
 include/GL/internal/dri_interface.h         | 4 +++-
 src/gallium/state_trackers/dri/dri_screen.c | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 86efd1b..0711c71 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -1554,11 +1554,13 @@ struct __DRIrobustnessExtensionRec {
  * the loader in supporting the driconf application.
  */
 #define __DRI_CONFIG_OPTIONS "DRI_ConfigOptions"
-#define __DRI_CONFIG_OPTIONS_VERSION 1
+#define __DRI_CONFIG_OPTIONS_VERSION 2
 
 typedef struct __DRIconfigOptionsExtensionRec {
    __DRIextension base;
    const char *xml;
+   int (*appendOptions) (struct __DRIconfigOptionsExtensionRec *configOptions,
+                         const char *append_xml);
 } __DRIconfigOptionsExtension;
 
 /**
diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c
index 998e8ef..07a29a7 100644
--- a/src/gallium/state_trackers/dri/dri_screen.c
+++ b/src/gallium/state_trackers/dri/dri_screen.c
@@ -56,6 +56,8 @@ const __DRIconfigOptionsExtension gallium_config_options = {
    DRI_CONF_BEGIN
       DRI_CONF_SECTION_PERFORMANCE
          DRI_CONF_MESA_GLTHREAD("false")
+         DRI_CONF_DISABLE_EXT_BUFFER_AGE("false")
+         DRI_CONF_DISABLE_OML_SYNC_CONTROL("false")
       DRI_CONF_SECTION_END
 
       DRI_CONF_SECTION_QUALITY
-- 
2.7.4



More information about the mesa-dev mailing list