vulkan: do not map zero-sized region of memory
The Vulkan 1.2 specification, section 11.2.12 ("Host Access to Device Memory Objects") say the following: > If size is not equal to VK_WHOLE_SIZE, size must be greater than 0 So, mapping a zero-sized range is illegal. Let's instead map the reported size of the image, which we already know. Fixes: 8af568e4 ("vulkan: implement wsi_win32 backend") Reviewed-by:Jason Ekstrand <jason@jlekstrand.net> Part-of: <mesa/mesa!11848> (cherry picked from commit d0c7a210)