freedreno: Log the number of loops in the shader for shader-db.
authorEric Anholt <eric@anholt.net>
Tue, 14 May 2019 23:24:33 +0000 (16:24 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 16 May 2019 17:25:22 +0000 (10:25 -0700)
commitef88e23d0335c05ebc60a621ee91cd6b22208597
tree9b70d97c7c3d5d83ee9e8af6e09f207a70428ade
parentc2e68bebb49c0d0bf59372b5480575b4d7bbcac4
freedreno: Log the number of loops in the shader for shader-db.

shader-db's report.py will use this to see when we've changed loop
unrolling behavior on a shader and skip including other stats like
instruction count from being considered for that shader, since they won't
be useful as a proxy for real world performance in that case.

Reviewed-by: Rob Clark <robdclark@gmail.com>
Tested-by: Eduardo Lima Mitev <elima@igalia.com>
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_shader.h
src/gallium/drivers/freedreno/ir3/ir3_gallium.c