From: Marek Olšák Date: Tue, 5 May 2020 01:52:09 +0000 (-0400) Subject: glsl: treat lowp as mediump when lowering builtins X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c14a87839d2937e07f69418285bbfc3c5b3e629;p=mesa.git glsl: treat lowp as mediump when lowering builtins This seems to have been missed. Reviewed-by: Alyssa Rosenzweig Reviewed-by: Rob Clark Part-of: --- diff --git a/src/compiler/glsl/lower_precision.cpp b/src/compiler/glsl/lower_precision.cpp index 332cd50cc7a..9ba1efafa01 100644 --- a/src/compiler/glsl/lower_precision.cpp +++ b/src/compiler/glsl/lower_precision.cpp @@ -646,8 +646,10 @@ find_precision_visitor::visit_enter(ir_call *ir) if (!ir->callee->is_builtin() || ir->return_deref == NULL || - ir->return_deref->variable_referenced()->data.precision != - GLSL_PRECISION_MEDIUM) + (ir->return_deref->variable_referenced()->data.precision != + GLSL_PRECISION_MEDIUM && + ir->return_deref->variable_referenced()->data.precision != + GLSL_PRECISION_LOW)) return visit_continue; ir->callee = map_builtin(ir->callee);