Mesa (master): drirc: add force_glsl_abs_sqrt() for "Spec Ops: The Line"

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Wed Mar 22 21:06:40 UTC 2017


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

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Fri Mar 17 01:06:57 2017 +0100

drirc: add force_glsl_abs_sqrt() for "Spec Ops: The Line"

Game ported from D3D9 which expects sqrt() to compute the absolute
value as explained in the spec.

This gets rid of the NaN values as well as the black squares
with RadeonSI.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97338
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>

---

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

diff --git a/src/mesa/drivers/dri/common/drirc b/src/mesa/drivers/dri/common/drirc
index 494e9e1509..23d09fabb1 100644
--- a/src/mesa/drivers/dri/common/drirc
+++ b/src/mesa/drivers/dri/common/drirc
@@ -120,5 +120,13 @@ TODO: document the other workarounds.
         <application name="The Culling" executable="Victory">
             <option name="force_glsl_version" value="440" />
         </application>
+
+        <application name="Spec Ops: The Line (32-bit)" executable="specops.i386">
+            <option name="force_glsl_abs_sqrt" value="true" />
+        </application>
+
+        <application name="Spec Ops: The Line (64-bit)" executable="specops">
+            <option name="force_glsl_abs_sqrt" value="true" />
+        </application>
     </device>
 </driconf>




More information about the mesa-commit mailing list