broadcom: Fix slice memory allocation logic for compressed textures
authorLucas Fryzek <lfryzek@igalia.com>
Fri, 19 May 2023 15:40:51 +0000 (11:40 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 23 May 2023 23:30:51 +0000 (23:30 +0000)
commit3e44b14af8481ce99d5ef1fb8b54f348ac3af77c
tree53b8278d6da93afe988d73654af8be64b37e67e5
parentfe973222a9a7e80c9be6b20ff04b79d46bf36b09
broadcom: Fix slice memory allocation logic for compressed textures

Compressed textures require their width and height padding to be
calculated based on the number of blocks in the image. This change ensures
that the number of blocks in the texture is a POT for mip levels > 1.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23133>
src/broadcom/vulkan/v3dv_image.c