freedreno/a6xx: Implement layout for DRM_FORMAT_MOD_QCOM_COMPRESSED
authorKristian H. Kristensen <hoegsberg@google.com>
Wed, 5 Feb 2020 01:49:35 +0000 (17:49 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Feb 2020 20:53:32 +0000 (20:53 +0000)
commit9891062642a3f35dc326b305fca2407f9041915c
tree443a5594d86d9aaf4bad65d95ea82eb48497b64a
parentd233c8c914ce819147197b9327bc22d1ea58b2fb
freedreno/a6xx: Implement layout for DRM_FORMAT_MOD_QCOM_COMPRESSED

This brings back fd6_fill_ubwc_buffer_sizes() to implement
layout_resource_for_modifier for DRM_FORMAT_MOD_QCOM_COMPRESSED.

Fixes: ecd62ff766 "freedreno: Allow UBWC on textures with multiple mipmap levels."
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3704>
src/gallium/drivers/freedreno/a6xx/fd6_resource.c