mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
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:
parent
2848e2f28e
commit
ca6bd57e76
2 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue