From: Neil Roberts Date: Wed, 10 Jul 2019 11:04:01 +0000 (+0200) Subject: glsl/builtin types: Set the precision on the depth range params X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eae06b34ea192360dc97c1b1b90511efb5d70a5c;p=mesa.git 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 --- 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[] = {