aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/drirc
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-03-17 01:06:57 +0100
committerSamuel Pitoiset <[email protected]>2017-03-22 22:02:20 +0100
commite11049f2c367192dfb1540855f6571a5e29b77ec (patch)
treeef5d2b3edeb92d64806308102049ee27692d67a8 /src/mesa/drivers/dri/common/drirc
parent7a0ecbfffd5b0c815dc1c55fdfcbdae3f59b6127 (diff)
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 <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/common/drirc')
-rw-r--r--src/mesa/drivers/dri/common/drirc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/drirc b/src/mesa/drivers/dri/common/drirc
index 494e9e15090..23d09fabb16 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>