vulkan/wsi: Pass the size to MapMemory in the SW path

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17388>
This commit is contained in:
Jason Ekstrand 2022-07-05 17:24:50 -05:00
parent 2848e2f28e
commit ca6bd57e76
2 changed files with 2 additions and 2 deletions

View file

@ -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]);

View file

@ -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,