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>
&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);