vulkan/overlay: Fix violation of VUID-VkMappedMemoryRange-size-01389
authorPavel Asyutchenko <sventeam@yandex.ru>
Sun, 25 Jul 2021 17:11:16 +0000 (20:11 +0300)
committerMarge Bot <eric+marge@anholt.net>
Fri, 30 Jul 2021 11:38:40 +0000 (11:38 +0000)
commit4374e7fb4598dcf09a6a8c137db854fc4f5ab328
treeb5baa9f91a326e0ec2760e1e44f1aa1735b354bd
parent175bc33da7a722969d17ae377e019c4e40725fc6
vulkan/overlay: Fix violation of VUID-VkMappedMemoryRange-size-01389

Mapping lentgh must be a multiple of 'nonCoherentAtomSize' bytes
when using VK_WHOLE_SIZE in vkFlushMappedMemoryRanges.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12131>
src/vulkan/overlay-layer/overlay.cpp