v3dv: align compressed image regions to block size
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 24 May 2023 07:00:48 +0000 (09:00 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 24 May 2023 09:28:07 +0000 (09:28 +0000)
commit3ba839bf734f37f50dfc5ffbe26af70763f974a2
tree5ae346abfc5145ba362aab5a23eb4227671de7bd
parent74e797e6ba6949edd97cdada96b5c62bec0ac107
v3dv: align compressed image regions to block size

This fixes an assert crash in UE4 when forcing the blit path for
image copies, caused by an image copy of a small miplevel which
pixel size is smaller than a single compressed block, leading to
an empty blit region.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23180>
src/broadcom/vulkan/v3dv_meta_copy.c