pvr: fix mipmap size calculation for bc formats
authorSoroushIMG <soroush.kashani@imgtec.com>
Sat, 17 Jun 2023 12:59:00 +0000 (13:59 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 9 Oct 2023 13:35:56 +0000 (13:35 +0000)
commit3808cb0696264d88a5813d18963acfccbb30a7be
treec461f414d971ab16bb5d0eb7a5d35597b37b558e
parente037761a2f6845653520e0785844efe1fd9340b4
pvr: fix mipmap size calculation for bc formats

The block size given by vk_format_get_blocksize is in blocks, not
texels.

dEQP tests affected:
  dEQP-VK.pipeline.monolithic.image_view.view_type*
    .format.eac*lod_base_mip_level

Fixes: 8991e6464 ("pvr: Add a Vulkan driver for Imagination Technologies PowerVR Rogue GPUs")
Signed-off-by: SoroushIMG <soroush.kashani@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25344>
src/imagination/vulkan/pvr_image.c