driconf: enable app-specific workarounds for all drivers
authorMarek Olšák <marek.olsak@amd.com>
Tue, 30 Jul 2013 20:29:22 +0000 (22:29 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 30 Jul 2013 21:31:24 +0000 (23:31 +0200)
They were only enabled for i965.

Note that drirc must be installed in /etc.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/common/drirc
src/mesa/drivers/dri/common/xmlconfig.c

index 556d1b599bd0ea15eff219701aa71207db966a1f..7c2d3ba8f0acfcb661db9799f242a08acd1bc453 100644 (file)
@@ -1,5 +1,7 @@
 <driconf>
-    <device screen="0" driver="i965">
+    <!-- Please always enable app-specific workarounds for all drivers and
+         screens. -->
+    <device>
         <application name="Unigine Sanctuary" executable="Sanctuary">
             <option name="force_glsl_extensions_warn" value="true" />
             <option name="disable_blend_func_extended" value="true" />
index 72483a42a5cae21b5f0bffb85fc76e12a8576a47..5c97c20fc0b280fbb8c1716b81dcc3e58c723823 100644 (file)
@@ -812,7 +812,9 @@ static void parseOptConfAttr (struct OptConfData *data, const XML_Char **attr) {
        driOptionCache *cache = data->cache;
        GLuint opt = findOption (cache, name);
        if (cache->info[opt].name == NULL)
-           XML_WARNING ("undefined option: %s.", name);
+            /* don't use XML_WARNING, drirc defines options for all drivers,
+             * but not all drivers support them */
+            return;
        else if (getenv (cache->info[opt].name))
          /* don't use XML_WARNING, we want the user to see this! */
            fprintf (stderr, "ATTENTION: option value of option %s ignored.\n",