From c8e1813b07a2239d193c2326b08d03eb05aaf56e Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 9 Jan 2019 17:16:59 +0100 Subject: [PATCH] [dxvk] Use DxvkBufferSliceHandle for staging buffers --- src/dxvk/dxvk_staging.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dxvk/dxvk_staging.cpp b/src/dxvk/dxvk_staging.cpp index 6b0dbc3a..943a5053 100644 --- a/src/dxvk/dxvk_staging.cpp +++ b/src/dxvk/dxvk_staging.cpp @@ -33,10 +33,10 @@ namespace dxvk { if (m_bufferOffset + size > m_bufferSize) return false; - auto physicalSlice = m_buffer->subSlice(m_bufferOffset, size); - slice.buffer = physicalSlice.handle(); - slice.offset = physicalSlice.offset(); - slice.mapPtr = physicalSlice.mapPtr(0); + auto physSlice = m_buffer->getSliceHandle(m_bufferOffset, size); + slice.buffer = physSlice.handle; + slice.offset = physSlice.offset; + slice.mapPtr = physSlice.mapPtr; m_bufferOffset = align(m_bufferOffset + size, 64); return true;