Mesa (master): glsl: treat lowp as mediump when lowering builtins
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 2 20:25:45 UTC 2020
Module: Mesa
Branch: master
Commit: 9c14a87839d2937e07f69418285bbfc3c5b3e629
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c14a87839d2937e07f69418285bbfc3c5b3e629
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon May 4 21:52:09 2020 -0400
glsl: treat lowp as mediump when lowering builtins
This seems to have been missed.
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5002>
---
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);
More information about the mesa-commit
mailing list