ac/surface: don't recompute the DCC retile map for imported textures
authorMarek Olšák <marek.olsak@amd.com>
Tue, 9 Jun 2020 06:08:21 +0000 (02:08 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 15:35:46 +0000 (15:35 +0000)
commita1b9eb62f60290e2d5aab403b1954aca7773a1e4
treeeee90226431fa9488dc4fb8da27886a1cf831faa
parent1b2e1163b2a63e3b88df6d17b4cfe314f9090dc0
ac/surface: don't recompute the DCC retile map for imported textures

The retile map is not used in this case, and the retile map computation
takes 39% of CPU time when resizing a window.

This brings it down to 23%.

The dcc_retile_use_uint16 setting has to be derived from DCC sizes.

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