r300: only print shader statistics when compilation succeeds
authorPavel Ondračka <pavel.ondracka@gmail.com>
Fri, 18 Feb 2022 07:48:23 +0000 (08:48 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 24 Feb 2022 21:31:03 +0000 (21:31 +0000)
commite7978412c3f83642d8d0cdf6610b0ac6f7b86308
treed0267c6f2304eaecd67664ee3fea6f9b07bf707d
parentb124f83bc2722dd8cfbfb17d830751a636c50278
r300: only print shader statistics when compilation succeeds

This allows to disregard the huge shaders that won't run anyway
and hopefully make catching shader regressions that result in a
compile failure easier.

Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15077>
src/gallium/drivers/r300/compiler/radeon_compiler.c
src/gallium/drivers/r300/compiler/radeon_compiler.h