radeonsi: dump shader stats when hitting the live cache
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 27 Mar 2020 12:45:08 +0000 (13:45 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 2 Apr 2020 06:31:37 +0000 (08:31 +0200)
commitdbc86fa3de6aba480f679a36b40227c0fe27c37b
tree62719b36c8851a786f3b9a278b273a683c6bf5fe
parent8306c533fe6b220b7ac3b40084266a47640fcf33
radeonsi: dump shader stats when hitting the live cache

With the introduction of the live shader cache, when a shader is
fetched from the cache no stats are printed for shaderdb.
So in a sequence like this: vs1, fs1, vs1, fs2, shaderdb may see
3 or 4 lines, depending on the threads being used.
If one run produces 3 lines while the other produces 4 lines, it
would compare vs1 stats with fs2 stats.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4355>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4355>
src/gallium/drivers/radeonsi/si_state_shaders.c