Module: Mesa Branch: master Commit: 93076f60d3a177ff2ec9c4b5662ff0ba69e3d0ec URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=93076f60d3a177ff2ec9c4b5662ff0ba69e3d0ec
Author: Rob Clark <[email protected]> Date: Mon Jul 20 10:36:13 2020 -0700 glsl: don't inline intrinsics for mediump They have an empty fxn body, trying to handle them results in the intrinsic call being expanded into a no-op. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Rob Clark <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6073> --- src/compiler/glsl/lower_precision.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/glsl/lower_precision.cpp b/src/compiler/glsl/lower_precision.cpp index 805b8d975a7..dcf632983f9 100644 --- a/src/compiler/glsl/lower_precision.cpp +++ b/src/compiler/glsl/lower_precision.cpp @@ -883,6 +883,7 @@ find_precision_visitor::visit_enter(ir_call *ir) */ if (!ir->callee->is_builtin() || + ir->callee->is_intrinsic() || return_var == NULL || (return_var->data.precision != GLSL_PRECISION_MEDIUM && return_var->data.precision != GLSL_PRECISION_LOW)) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
