glsl: Add unit tests for the lower_precision pass
authorNeil Roberts <nroberts@igalia.com>
Fri, 4 Oct 2019 09:13:21 +0000 (05:13 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 24 Mar 2020 23:21:21 +0000 (23:21 +0000)
commitcc09745714d7c698b6adc48ed63ab6f506603088
treed231737ff4ec9a265a06f22d8c8f1c88ee9cd12c
parent32cd3bd85014a6fbbabc3a26a16c05e8e98a8485
glsl: Add unit tests for the lower_precision pass

Adds a unit tests script that invokes the standalone compiler with
--lower-precision and verifies that lowered operations are being used.

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/tests/lower_precision_test.py [new file with mode: 0644]
src/compiler/glsl/tests/meson.build