diff options
author | Samuel Pitoiset <[email protected]> | 2017-03-17 01:06:54 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-03-22 22:01:01 +0100 |
commit | 448f4c0c891945ea3d440d26045db33580673db7 (patch) | |
tree | cf287512bbc4fa2f06a3f842a19455db49c599d3 /src/mesa/main | |
parent | 08f864abd9e241c7db9c99212a66cdad69bdd4d8 (diff) |
driconf: add force_glsl_abs_sqrt option
This will allow to force computing the absolute value for sqrt()
and inversesqrt() in order to follow D3D9 behaviour for buggy
apps that rely on it.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/mtypes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 7e970843d5c..be78b96810d 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3556,6 +3556,12 @@ struct gl_constants GLboolean AllowHigherCompatVersion; /** + * Force computing the absolute value for sqrt() and inversesqrt() to follow + * D3D9 when apps rely on this behaviour. + */ + GLboolean ForceGLSLAbsSqrt; + + /** * Force uninitialized variables to default to zero. */ GLboolean GLSLZeroInit; |