radeonsi: move GL vendor workaround to drirc
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 15 Sep 2020 08:48:26 +0000 (10:48 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 21 Sep 2020 12:14:57 +0000 (14:14 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6754>

src/gallium/drivers/radeonsi/si_get.c
src/util/00-mesa-defaults.conf

index 169cf7e..d0bf95d 100644 (file)
@@ -35,9 +35,6 @@
 
 static const char *si_get_vendor(struct pipe_screen *pscreen)
 {
-   /* Don't change this. Games such as Alien Isolation are broken if this
-    * returns "Advanced Micro Devices, Inc."
-    */
    return "X.Org";
 }
 
index ce0a633..a24f627 100644 (file)
@@ -619,6 +619,9 @@ TODO: document the other workarounds.
         </application>
     </device>
     <device driver="radeonsi">
+        <application name="Alien Isolation" executable="AlienIsolation">
+            <option name="force_gl_vendor" value="X.Org" />
+        </application>
         <application name="American Truck Simulator" executable="amtrucks">
             <option name="radeonsi_zerovram" value="true" />
         </application>