From 501b0991daa58353f9f323a66d38c26dcb7d5a36 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 5 Oct 2024 10:07:29 +0200 Subject: [PATCH] [dxvk] Remove per-context staging buffer No longer used. --- src/dxvk/dxvk_context.cpp | 3 +-- src/dxvk/dxvk_context.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index d9ad9cd92..3fd213b2e 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -16,8 +16,7 @@ namespace dxvk { m_initBarriers(DxvkCmdBuffer::InitBuffer), m_execAcquires(DxvkCmdBuffer::ExecBuffer), m_execBarriers(DxvkCmdBuffer::ExecBuffer), - m_queryManager(m_common->queryPool()), - m_staging (device, StagingBufferSize) { + m_queryManager(m_common->queryPool()) { // Init framebuffer info with default render pass in case // the app does not explicitly bind any render targets m_state.om.framebufferInfo = makeFramebufferInfo(m_state.om.renderTargets); diff --git a/src/dxvk/dxvk_context.h b/src/dxvk/dxvk_context.h index d1efef953..7096b05d0 100644 --- a/src/dxvk/dxvk_context.h +++ b/src/dxvk/dxvk_context.h @@ -31,7 +31,7 @@ namespace dxvk { * recorded. */ class DxvkContext : public RcObject { - constexpr static VkDeviceSize StagingBufferSize = 4ull << 20; + public: DxvkContext(const Rc& device, DxvkContextType type); @@ -1464,7 +1464,6 @@ namespace dxvk { DxvkBarrierControlFlags m_barrierControl; DxvkGpuQueryManager m_queryManager; - DxvkStagingBuffer m_staging; DxvkGlobalPipelineBarrier m_globalRoGraphicsBarrier; DxvkGlobalPipelineBarrier m_globalRwGraphicsBarrier;