From 9c14a87839d2937e07f69418285bbfc3c5b3e629 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 4 May 2020 21:52:09 -0400 Subject: [PATCH] glsl: treat lowp as mediump when lowering builtins This seems to have been missed. Reviewed-by: Alyssa Rosenzweig Reviewed-by: Rob Clark Part-of: --- src/compiler/glsl/lower_precision.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.30.2