st/nine: Enable ttn cache
authorAxel Davy <davyaxel0@gmail.com>
Tue, 12 May 2020 20:26:46 +0000 (22:26 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 19:43:05 +0000 (19:43 +0000)
commitf83f538881da04bc2a5dca2741c69b50a8880b40
treef08ca37bc4ef2df66a98b335528539babc7f5067
parent4db880d8057bac3209c196edc94c6b1e521a782a
st/nine: Enable ttn cache

A trace of a Hat in Time, which builds thousands of shaders
takes 339 seconds to run the second time without this patch,
and 41 seconds with it (basically there is no more loading times).

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4993>
src/gallium/frontends/nine/nine_shader.c