st/dri: add force_glsl_extensions_warn option to dri options
authorVadim Girlin <vadimgirlin@gmail.com>
Thu, 12 Apr 2012 00:28:52 +0000 (04:28 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Thu, 23 Aug 2012 15:57:51 +0000 (19:57 +0400)
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/state_trackers/dri/common/dri_screen.c

index e581a74685ae146b87c8f58f7ed53d4bfd45e2dd..102a1326133b14a0faae6b483be5470c26235e44 100644 (file)
@@ -43,6 +43,8 @@
 
 #define MSAA_VISUAL_MAX_SAMPLES 8
 
+#undef false
+
 PUBLIC const char __driConfigOptions[] =
    DRI_CONF_BEGIN
       DRI_CONF_SECTION_PERFORMANCE
@@ -60,9 +62,16 @@ PUBLIC const char __driConfigOptions[] =
          DRI_CONF_PP_JIMENEZMLAA(0, 0, 32)
          DRI_CONF_PP_JIMENEZMLAA_COLOR(0, 0, 32)
       DRI_CONF_SECTION_END
+
+      DRI_CONF_SECTION_DEBUG
+         DRI_CONF_FORCE_GLSL_EXTENSIONS_WARN(false)
+      DRI_CONF_SECTION_END
+
    DRI_CONF_END;
 
-static const uint __driNConfigOptions = 9;
+#define false 0
+
+static const uint __driNConfigOptions = 10;
 
 static const __DRIconfig **
 dri_fill_in_modes(struct dri_screen *screen,