compiler/glsl: Return progress from propagate_invariance()
authorMatt Turner <mattst88@gmail.com>
Fri, 16 Apr 2021 17:50:41 +0000 (13:50 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 20 Apr 2021 18:54:57 +0000 (18:54 +0000)
commit5ef4296cb651e39402263c426d3edbee99ea1220
treec85b8cda4ad634667d68e0552c2a8ec53e91c38c
parent9fb1f9303b5e082f1aa6133c76a71cbf075bfd11
compiler/glsl: Return progress from propagate_invariance()

Doing so allow you to easily tell what the pass did using the existing
infrastructure in the OPT macro.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10292>
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/ir_optimization.h
src/compiler/glsl/propagate_invariance.cpp