ac/surface: cache DCC retile maps (v2)
authorMarek Olšák <marek.olsak@amd.com>
Tue, 9 Jun 2020 08:55:19 +0000 (04:55 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 15:35:46 +0000 (15:35 +0000)
commitbd553f0546dc361fc7e8abba649e1e9c9ea2010b
treebde96939458b7b94c1b123167b20fa3c573f550c
parent4cf674c8f730bfa7c8dfe8b4ebe86f1f4e5f1bb9
ac/surface: cache DCC retile maps (v2)

This reduces overhead when resizing windows or when allocating
similar image sizes over and over again.

v2: optimize the memory footprint of the cache

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5398>
src/amd/common/ac_surface.c
src/amd/common/ac_surface.h
src/gallium/drivers/radeonsi/si_texture.c