generators: Add the default precision for floats in GLSL ES shaders

Graphics / Mesa 3D Graphics Library / Piglit - Neil Roberts [igalia.com] - 5 September 2019 12:13 UTC

In GLSL ES fragment shaders there is no default precision for floats. The generated shaders are using floats in the return type of a function. These had undefined precision which should be invalid.

Mesa has started detecting this since 95927c414ff.

2920fc26a generators: Add the default precision for floats in GLSL ES shaders
generated_tests/templates/gen_extensions_defined/disabled.glsl.mako | 4 ++++
generated_tests/templates/gen_extensions_defined/enabled.glsl.mako | 4 ++++
.../templates/gen_extensions_defined/undefined-require.glsl.mako | 4 ++++
3 files changed, 12 insertions(+)

Upstream: cgit.freedesktop.org


  • Share