Commit cd94aa8f authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Do not flush read-only mappings in wined3d_texture_vk_download_data().

parent 9a375600
...@@ -4645,7 +4645,6 @@ static void wined3d_texture_vk_download_data(struct wined3d_context *context, ...@@ -4645,7 +4645,6 @@ static void wined3d_texture_vk_download_data(struct wined3d_context *context,
VkCommandBuffer vk_command_buffer; VkCommandBuffer vk_command_buffer;
struct wined3d_bo_vk staging_bo; struct wined3d_bo_vk staging_bo;
VkImageAspectFlags aspect_mask; VkImageAspectFlags aspect_mask;
struct wined3d_range range;
VkBufferImageCopy region; VkBufferImageCopy region;
void *map_ptr; void *map_ptr;
...@@ -4776,9 +4775,7 @@ static void wined3d_texture_vk_download_data(struct wined3d_context *context, ...@@ -4776,9 +4775,7 @@ static void wined3d_texture_vk_download_data(struct wined3d_context *context,
dst_bo_addr->addr, dst_row_pitch, dst_slice_pitch, src_box->right - src_box->left, dst_bo_addr->addr, dst_row_pitch, dst_slice_pitch, src_box->right - src_box->left,
src_box->bottom - src_box->top, src_box->back - src_box->front); src_box->bottom - src_box->top, src_box->back - src_box->front);
range.offset = 0; wined3d_context_unmap_bo_address(context, &staging_bo_addr, 0, NULL);
range.size = sub_resource->size;
wined3d_context_unmap_bo_address(context, &staging_bo_addr, 1, &range);
wined3d_context_vk_destroy_bo(context_vk, &staging_bo); wined3d_context_vk_destroy_bo(context_vk, &staging_bo);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment