amd/addrlib: don't recompute DCC info for every ComputeDccAddrFromCoord call
authorMarek Olšák <marek.olsak@amd.com>
Tue, 9 Jun 2020 06:40:20 +0000 (02:40 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 15:35:46 +0000 (15:35 +0000)
commita99f4d5382c2a3053c2938f9035b8872ab2c542f
tree7cb4c970321fe33f06e587f3ffd88861451f2943
parenta1b9eb62f60290e2d5aab403b1954aca7773a1e4
amd/addrlib: don't recompute DCC info for every ComputeDccAddrFromCoord call

This decreases the DCC retile map overhead from 23% to 18%.

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/addrlib/inc/addrinterface.h
src/amd/addrlib/src/gfx10/gfx10addrlib.cpp
src/amd/addrlib/src/gfx9/gfx9addrlib.cpp
src/amd/common/ac_surface.c