Mesa (master): glsl/builtin types: Set the precision on the depth range params

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 11 06:24:11 UTC 2019


Module: Mesa
Branch: master
Commit: eae06b34ea192360dc97c1b1b90511efb5d70a5c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eae06b34ea192360dc97c1b1b90511efb5d70a5c

Author: Neil Roberts <nroberts at igalia.com>
Date:   Wed Jul 10 13:04:01 2019 +0200

glsl/builtin types: Set the precision on the depth range params

The members of gl_DepthRangeParameters are declared to be highp in
GLSL ES specs.

Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/compiler/glsl/builtin_types.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/compiler/glsl/builtin_types.cpp b/src/compiler/glsl/builtin_types.cpp
index b29d71fa0a5..d3a28acf27b 100644
--- a/src/compiler/glsl/builtin_types.cpp
+++ b/src/compiler/glsl/builtin_types.cpp
@@ -53,9 +53,9 @@
       &glsl_type::_struct_##NAME##_type;
 
 static const struct glsl_struct_field gl_DepthRangeParameters_fields[] = {
-   glsl_struct_field(glsl_type::float_type, "near"),
-   glsl_struct_field(glsl_type::float_type, "far"),
-   glsl_struct_field(glsl_type::float_type, "diff"),
+   glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "near"),
+   glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "far"),
+   glsl_struct_field(glsl_type::float_type, GLSL_PRECISION_HIGH, "diff"),
 };
 
 static const struct glsl_struct_field gl_PointParameters_fields[] = {




More information about the mesa-commit mailing list