Module: wine Branch: master Commit: f0cc2ef2bd8c05f2da0547de0b8f2f85e640143b URL: https://source.winehq.org/git/wine.git/?a=commit;h=f0cc2ef2bd8c05f2da0547de0...
Author: Zebediah Figura zfigura@codeweavers.com Date: Wed Sep 29 17:15:23 2021 -0500
wined3d: Call the unmap_upload_bo callback in wined3d_device_context_emit_update_sub_resource().
We will need to mark the resource as no longer mapped, from the client's perspective.
Signed-off-by: Zebediah Figura zfigura@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wined3d/cs.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c index 93d810b9191..77d5394b169 100644 --- a/dlls/wined3d/cs.c +++ b/dlls/wined3d/cs.c @@ -2759,6 +2759,7 @@ void wined3d_device_context_emit_update_sub_resource(struct wined3d_device_conte const void *data, unsigned int row_pitch, unsigned int slice_pitch) { struct wined3d_cs_update_sub_resource *op; + struct wined3d_box dummy_box; struct upload_bo bo; void *map_ptr;
@@ -2767,6 +2768,7 @@ void wined3d_device_context_emit_update_sub_resource(struct wined3d_device_conte { wined3d_format_copy_data(resource->format, data, row_pitch, slice_pitch, map_ptr, row_pitch, slice_pitch, box->right - box->left, box->bottom - box->top, box->back - box->front); + context->ops->unmap_upload_bo(context, resource, sub_resource_idx, &dummy_box, &bo); wined3d_device_context_upload_bo(context, resource, sub_resource_idx, box, &bo, row_pitch, slice_pitch); return; }