panfrost: Add debug flag to force packing of AFBC textures on upload
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
Fri, 1 Sep 2023 17:31:19 +0000 (13:31 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 25 Oct 2023 14:25:31 +0000 (14:25 +0000)
commit33b48a55857b15f7e7b892a89cad2f0ad2399ba6
tree7d13df9471c295506845e3a01a832e33069442f8
parentbc91af8021a7fb44c7c4e67f25ef670d55ea109d
panfrost: Add debug flag to force packing of AFBC textures on upload

Add `forcepack` flag that will force conversion to AFBC-packed right
after a texture is uploaded when possible. We only pack 2D resources
larger than 32x32 as of now.

Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25012>
src/gallium/drivers/panfrost/pan_resource.c
src/gallium/drivers/panfrost/pan_resource.h
src/gallium/drivers/panfrost/pan_screen.c
src/panfrost/lib/pan_afbc.c
src/panfrost/lib/pan_texture.h
src/panfrost/lib/pan_util.h