From 493ad66d918417c95a302a6e162673d29946eea6 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 19 Mar 2018 17:56:26 +0100 Subject: [PATCH] [d3d11] Remove obsolete acquire/release pair This is no longer needed with the universally thread-safe slice allocator. --- src/d3d11/d3d11_context_imm.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/d3d11/d3d11_context_imm.cpp b/src/d3d11/d3d11_context_imm.cpp index d4174918..ca04616e 100644 --- a/src/d3d11/d3d11_context_imm.cpp +++ b/src/d3d11/d3d11_context_imm.cpp @@ -143,8 +143,6 @@ namespace dxvk { // it as the 'new' mapped slice. This assumes that the // only way to invalidate a buffer is by mapping it. auto physicalSlice = buffer->allocPhysicalSlice(); - physicalSlice.resource()->acquire(); - pResource->GetBufferInfo()->mappedSlice = physicalSlice; EmitCs([ @@ -152,7 +150,6 @@ namespace dxvk { cPhysicalSlice = physicalSlice ] (DxvkContext* ctx) { ctx->invalidateBuffer(cBuffer, cPhysicalSlice); - cPhysicalSlice.resource()->release(); }); } else if (MapType != D3D11_MAP_WRITE_NO_OVERWRITE) { if (!WaitForResource(buffer->resource(), MapFlags))