glsl/standalone: Add an option to lower the precision
authorNeil Roberts <nroberts@igalia.com>
Thu, 3 Oct 2019 23:59:10 +0000 (19:59 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 24 Mar 2020 23:21:21 +0000 (23:21 +0000)
commit32cd3bd85014a6fbbabc3a26a16c05e8e98a8485
tree02f6a6b320c3cf252682760129bc81ad8b6b47f5
parentb83f4b9fa23dc3d94ebb885897c19590c750cb83
glsl/standalone: Add an option to lower the precision

Adds a --lower-precision option that just sets the LowerPrecision
compiler option. That way it can be used in unit tests to test the
precision lowering pass.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3885>
src/compiler/glsl/main.cpp
src/compiler/glsl/standalone.cpp
src/compiler/glsl/standalone.h