diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c index ce7da864cc5..ae9eb18b87c 100644 --- a/src/vulkan/wsi/wsi_common_wayland.c +++ b/src/vulkan/wsi/wsi_common_wayland.c @@ -1049,7 +1049,7 @@ wsi_wl_swapchain_queue_present(struct wsi_swapchain *wsi_chain, void *sptr; chain->base.wsi->MapMemory(chain->base.device, image->base.memory, - 0, 0, 0, &sptr); + 0, VK_WHOLE_SIZE, 0, &sptr); for (unsigned r = 0; r < chain->extent.height; r++) { memcpy(dptr, sptr, image->base.row_pitches[0]); diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c index 6992a490a4b..609da7f71f9 100644 --- a/src/vulkan/wsi/wsi_common_x11.c +++ b/src/vulkan/wsi/wsi_common_x11.c @@ -1298,7 +1298,7 @@ x11_present_to_x11_sw(struct x11_swapchain *chain, uint32_t image_index, chain->base.wsi->MapMemory(chain->base.device, image->base.memory, - 0, 0, 0, &myptr); + 0, VK_WHOLE_SIZE, 0, &myptr); if (size < max_req_len) { cookie = xcb_put_image(chain->conn, XCB_IMAGE_FORMAT_Z_PIXMAP,