panfrost: Don't CRC mipmapped textures
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 9 Jun 2021 00:17:23 +0000 (20:17 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Jun 2021 18:06:10 +0000 (18:06 +0000)
commitd181218238e893141bfc058c47f946cb18c5f016
treecfb98f2ebfebd1ae64298e894be00a136e48c88c
parenteb82863f8ad160ed315b533a2bce7008bc43f2af
panfrost: Don't CRC mipmapped textures

CRC is intended for final render targets and especially for UI, not the
kind of things you'd mipmap. Meanwhile CRC only works for a single
level, meaning at any given point, half the CRC buffer would be wasted
for a full miptree.

"Arm Mali Best Practices Guide" tells developers that the DDK only
enables CRC for non-mipmapped resources (at least the Vulkan DDK), so
let's do the same, save some memory, and simplify our code.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
src/gallium/drivers/panfrost/pan_resource.c
src/panfrost/lib/pan_blitter.c
src/panfrost/lib/pan_cs.c
src/panfrost/lib/pan_texture.h