From 7a0ecbfffd5b0c815dc1c55fdfcbdae3f59b6127 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 17 Mar 2017 14:58:49 +0100 Subject: [PATCH] st/glsl_to_tgsi: enable lower_sqrt() conditionally MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It relies on the force_glsl_abs_sqrt driconf option. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2