Skip to content
Snippets Groups Projects
Commit d0c7a210 authored by Erik Faye-Lund's avatar Erik Faye-Lund Committed by Marge Bot
Browse files

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: default avatarJason Ekstrand <jason@jlekstrand.net>
Part-of: <mesa/mesa!11848>
parent 2fd989a2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment