mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
lavapipe: Prevent mapping buffers beyond their size.
This was breaking trace driver serialization, since it relies upon the transfer box to know what to serialize. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17107>
This commit is contained in:
parent
b78caa7f7d
commit
382c6d395c
1 changed files with 1 additions and 1 deletions
|
|
@ -2202,7 +2202,7 @@ static void handle_copy_image_to_buffer2(struct vk_cmd_queue_entry *cmd,
|
|||
dbox.x = copycmd->pRegions[i].bufferOffset;
|
||||
dbox.y = 0;
|
||||
dbox.z = 0;
|
||||
dbox.width = lvp_buffer_from_handle(copycmd->dstBuffer)->bo->width0;
|
||||
dbox.width = lvp_buffer_from_handle(copycmd->dstBuffer)->bo->width0 - copycmd->pRegions[i].bufferOffset;
|
||||
dbox.height = 1;
|
||||
dbox.depth = 1;
|
||||
dst_data = state->pctx->buffer_map(state->pctx,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue