From: Rob Clark Date: Thu, 2 Apr 2020 21:08:54 +0000 (-0700) Subject: glsl: don't limit fp16 lowering to frag X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b06adb75054842294e4dbbe2e5af294470862fb;p=mesa.git glsl: don't limit fp16 lowering to frag This restriction doesn't belong in core code. Signed-off-by: Rob Clark Tested-by: Marge Bot Part-of: --- diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp index d930c30a7e1..c6e3999caf5 100644 --- a/src/compiler/glsl/glsl_parser_extras.cpp +++ b/src/compiler/glsl/glsl_parser_extras.cpp @@ -2236,7 +2236,7 @@ _mesa_glsl_compile_shader(struct gl_context *ctx, struct gl_shader *shader, &ctx->Const.ShaderCompilerOptions[shader->Stage]; if (!state->error && !shader->ir->is_empty()) { - if (options->LowerPrecision && shader->Stage == MESA_SHADER_FRAGMENT) + if (options->LowerPrecision) lower_precision(shader->ir); lower_builtins(shader->ir); assign_subroutine_indexes(state);