diff --git a/src/gallium/drivers/d3d12/d3d12_resource.cpp b/src/gallium/drivers/d3d12/d3d12_resource.cpp index a625347dd8f..05d035959d9 100644 --- a/src/gallium/drivers/d3d12/d3d12_resource.cpp +++ b/src/gallium/drivers/d3d12/d3d12_resource.cpp @@ -1716,7 +1716,7 @@ d3d12_transfer_map(struct pipe_context *pctx, return NULL; } } - + ptrans->box = original_box; d3d12_flush_cmdlist_and_wait(ctx); } @@ -1868,6 +1868,7 @@ d3d12_transfer_unmap(struct pipe_context *pctx, transfer_buf_to_image(ctx, d3d12_resource(planes[plane_slice]), staging_res, trans, 0); } + ptrans->box = original_box; } pipe_resource_reference(&trans->staging_res, NULL);