v3dv: fix slice size for miplevels >= 2
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 22 Jun 2023 06:18:35 +0000 (08:18 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 27 Jun 2023 07:04:20 +0000 (09:04 +0200)
commitcec030a2332a4d9f18d8ef80912330fc7742403e
treec863cd2d8c145f07c828060b98d521f4ec9124f7
parent107d29765b57fb4e6504127759877b45e8c4b7ae
v3dv: fix slice size for miplevels >= 2

We want to store the slice size in pixels not the level size
after padding to a power of 2 we use miplevels >= 2.

Fixes: 1cb2d2a5ee ('v3dv: store slice dimensions in pixels')
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23739>
src/broadcom/vulkan/v3dv_image.c