34b6ae96c0
The padded width/height is stored in samples, while the blit box dimensions need to be specified in pixels. Use the unpadded width/height of the resource levels to generate the blit box dimensions used to copy a resource. The blit code already extends those sizes to the padded sizes when necessary and possible. This commit needed to be reverted previously, as it triggered a bug in the RS blit path. This bug has been fixed so now we can reapply this change to get the blit dimensions corrected. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28598>