v3dv: fix align() computation for pixel formats with non-POT block sizes
authorEric Engestrom <eric@igalia.com>
Wed, 24 May 2023 19:39:16 +0000 (20:39 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 25 May 2023 20:25:04 +0000 (20:25 +0000)
commit3867e91da4a74c007641b0d7d0da43e4f985095e
tree9cbcdf85337418b5db928fc7a7ff8715f047c505
parent2fbf13085ac980368ffdc8ebe1a48010cc5801b3
v3dv: fix align() computation for pixel formats with non-POT block sizes

Fixes hundreds of dEQP-VK.api.copy_and_blit.* tests when including the
assert that the alignment in align() is valid, as added in !20153.

Fixes: 3ba839bf734f37f50dfc ("v3dv: align compressed image regions to block size")
Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23224>
src/broadcom/vulkan/v3dv_meta_copy.c