vulkan/wsi: Allow for larger linear images
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Sat, 14 Oct 2023 14:47:50 +0000 (09:47 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 16 Oct 2023 13:02:14 +0000 (13:02 +0000)
commit7fb561eff20bf0404097ce5baf16c712809e464f
tree59b1860934c973c0c16b909a83e4731a6bc866ef
parent7a83109835634c5b6c4c979d83b8aeb8a7c5f421
vulkan/wsi: Allow for larger linear images

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>
src/vulkan/wsi/wsi_common.c
src/vulkan/wsi/wsi_common_private.h