From: Rob Clark Date: Mon, 20 Jul 2020 17:36:13 +0000 (-0700) Subject: glsl: don't inline intrinsics for mediump X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=93076f60d3a177ff2ec9c4b5662ff0ba69e3d0ec;p=mesa.git 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 Reviewed-by: Rob Clark Part-of: --- 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))