From: Samuel Pitoiset Date: Fri, 17 Mar 2017 13:58:49 +0000 (+0100) Subject: st/glsl_to_tgsi: enable lower_sqrt() conditionally X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a0ecbfffd5b0c815dc1c55fdfcbdae3f59b6127;p=mesa.git st/glsl_to_tgsi: enable lower_sqrt() conditionally It relies on the force_glsl_abs_sqrt driconf option. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- 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