For images of size 32768 × 32768 (which NVK allows), the linear image ends up being 4GB which overflows the uint32_t size as well as some of our alignment calculations. Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25729>