diff options
author | Samuel Pitoiset <[email protected]> | 2017-03-17 14:58:49 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-03-22 22:02:20 +0100 |
commit | 7a0ecbfffd5b0c815dc1c55fdfcbdae3f59b6127 (patch) | |
tree | c1bb40051bd738d4fdb39768a778739e56557ff3 /src/mesa | |
parent | 737c734cd4851968542c58892e50c3afa55471ef (diff) |
st/glsl_to_tgsi: enable lower_sqrt() conditionally
It relies on the force_glsl_abs_sqrt driconf option.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index c53da293222..5bfcc73a3b2 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -6972,6 +6972,7 @@ st_link_shader(struct gl_context *ctx, struct gl_shader_program *prog) (options->EmitNoPow ? POW_TO_EXP2 : 0) | (!ctx->Const.NativeIntegers ? INT_DIV_TO_MUL_RCP : 0) | (options->EmitNoSat ? SAT_TO_CLAMP : 0) | + (ctx->Const.ForceGLSLAbsSqrt ? SQRT_TO_ABS_SQRT : 0) | /* Assume that if ARB_gpu_shader5 is not supported * then all of the extended integer functions need * lowering. It may be necessary to add some caps |