mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-26 05:58:11 +02: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>
(cherry picked from commit ca6bd57e76)
This commit is contained in:
parent
eb1fb9305d
commit
2b157e92d7
3 changed files with 3 additions and 3 deletions
|
|
@ -2083,7 +2083,7 @@
|
|||
"description": "vulkan/wsi: Pass the size to MapMemory in the SW path",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
|
|
|
|||
|
|
@ -1276,7 +1276,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