mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Remove obsolete acquire/release pair
This is no longer needed with the universally thread-safe slice allocator.
This commit is contained in:
parent
f762811af0
commit
493ad66d91
@ -143,8 +143,6 @@ namespace dxvk {
|
|||||||
// it as the 'new' mapped slice. This assumes that the
|
// it as the 'new' mapped slice. This assumes that the
|
||||||
// only way to invalidate a buffer is by mapping it.
|
// only way to invalidate a buffer is by mapping it.
|
||||||
auto physicalSlice = buffer->allocPhysicalSlice();
|
auto physicalSlice = buffer->allocPhysicalSlice();
|
||||||
physicalSlice.resource()->acquire();
|
|
||||||
|
|
||||||
pResource->GetBufferInfo()->mappedSlice = physicalSlice;
|
pResource->GetBufferInfo()->mappedSlice = physicalSlice;
|
||||||
|
|
||||||
EmitCs([
|
EmitCs([
|
||||||
@ -152,7 +150,6 @@ namespace dxvk {
|
|||||||
cPhysicalSlice = physicalSlice
|
cPhysicalSlice = physicalSlice
|
||||||
] (DxvkContext* ctx) {
|
] (DxvkContext* ctx) {
|
||||||
ctx->invalidateBuffer(cBuffer, cPhysicalSlice);
|
ctx->invalidateBuffer(cBuffer, cPhysicalSlice);
|
||||||
cPhysicalSlice.resource()->release();
|
|
||||||
});
|
});
|
||||||
} else if (MapType != D3D11_MAP_WRITE_NO_OVERWRITE) {
|
} else if (MapType != D3D11_MAP_WRITE_NO_OVERWRITE) {
|
||||||
if (!WaitForResource(buffer->resource(), MapFlags))
|
if (!WaitForResource(buffer->resource(), MapFlags))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user