radeonsi: don't cache FMASK transactions from CB in L2
authorMarek Olšák <marek.olsak@amd.com>
Tue, 16 Mar 2021 02:17:39 +0000 (22:17 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Apr 2021 03:17:42 +0000 (03:17 +0000)
commitfa43d619531778fbb36e19f9a989a8b4b284121b
tree811995ce6e9024563ce379cbd70385721c4dafd8
parentbc1f715076192d49bcd9dd8e7abfe6c2ec2c2a57
radeonsi: don't cache FMASK transactions from CB in L2

FMASK is usually pretty large. It's better to leave the cache to shaders.
FMASK stores are still cached, but they can be evicted sooner, which is
the same as other color stores. Only DCC, HTILE, and CMASK are cached.

I haven't benchmarked this, but it seems like the right thing to do.
This only affected APUs.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10003>
src/gallium/drivers/radeonsi/si_state.c