glsl: don't limit fp16 lowering to frag
This restriction doesn't belong in core code. Signed-off-by: Rob Clark <robdclark@chromium.org> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4423> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4423>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user