From 93076f60d3a177ff2ec9c4b5662ff0ba69e3d0ec Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 20 Jul 2020 10:36:13 -0700 Subject: [PATCH] glsl: don't inline intrinsics for mediump MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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: --- 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)) -- 2.30.2