drirc: Add glsl_correct_derivatives_after_discard for The Witcher 2
authorEdmondo Tommasina <edmondo.tommasina@gmail.com>
Wed, 21 Jun 2017 20:40:37 +0000 (22:40 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 23 Jun 2017 17:50:20 +0000 (19:50 +0200)
This fixes the long-standing problem with black transitions in The Wicher 2.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98238

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/drivers/dri/common/drirc

index 7d73b1218b5a1566bcd077e0384650ff2b9ddb96..494d768312bba75e4f3c6fa17ceba03cf94d7185 100644 (file)
@@ -155,6 +155,10 @@ TODO: document the other workarounds.
         <application name="Rocket League" executable="RocketLeague">
             <option name="glsl_correct_derivatives_after_discard" value="true"/>
         </application>
+
+        <application name="The Witcher 2" executable="witcher2">
+            <option name="glsl_correct_derivatives_after_discard" value="true"/>
+        </application>
     </device>
     <!-- vmwgfx doesn't like full buffer swaps and can't sync to vertical retraces.-->
     <device driver="vmwgfx">