[d3d11] Remove obsolete acquire/release pair

This is no longer needed with the universally
thread-safe slice allocator.
This commit is contained in:
Philip Rebohle 2018-03-19 17:56:26 +01:00
parent f762811af0
commit 493ad66d91
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 0 additions and 3 deletions

View File

@ -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))