Mesa (master): drirc: Add glsl_correct_derivatives_after_discard for The Witcher 2

Marek Olšák mareko at kemper.freedesktop.org
Fri Jun 23 17:51:30 UTC 2017


Module: Mesa
Branch: master
Commit: 2ea16f08f3f57ce32a2912ddd0ed74027a89a547
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ea16f08f3f57ce32a2912ddd0ed74027a89a547

Author: Edmondo Tommasina <edmondo.tommasina at gmail.com>
Date:   Wed Jun 21 22:40:37 2017 +0200

drirc: Add glsl_correct_derivatives_after_discard for The Witcher 2

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 at amd.com>

---

 src/mesa/drivers/dri/common/drirc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mesa/drivers/dri/common/drirc b/src/mesa/drivers/dri/common/drirc
index 7d73b1218b..494d768312 100644
--- a/src/mesa/drivers/dri/common/drirc
+++ b/src/mesa/drivers/dri/common/drirc
@@ -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">




More information about the mesa-commit mailing list