1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[dxvk] Use DxvkStagingBuffer in DxvkContext

This commit is contained in:
Philip Rebohle 2022-02-12 17:00:53 +01:00
parent 1b88bc624a
commit 8518572d13
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ namespace dxvk {
m_execBarriers(DxvkCmdBuffer::ExecBuffer),
m_gfxBarriers (DxvkCmdBuffer::ExecBuffer),
m_queryManager(m_common->queryPool()),
m_staging (device) {
m_staging (device, StagingBufferSize) {
if (m_device->features().extRobustness2.nullDescriptor)
m_features.set(DxvkContextFeature::NullDescriptors);
if (m_device->features().extExtendedDynamicState.extendedDynamicState)
@ -2599,7 +2599,7 @@ namespace dxvk {
void DxvkContext::trimStagingBuffers() {
m_staging.trim();
m_staging.reset();
}
void DxvkContext::beginDebugLabel(VkDebugUtilsLabelEXT *label) {

View File

@ -19,7 +19,7 @@ namespace dxvk {
* recorded.
*/
class DxvkContext : public RcObject {
constexpr static VkDeviceSize StagingBufferSize = 32ull << 20;
public:
DxvkContext(const Rc<DxvkDevice>& device);
@ -1082,7 +1082,7 @@ namespace dxvk {
DxvkBarrierControlFlags m_barrierControl;
DxvkGpuQueryManager m_queryManager;
DxvkStagingDataAlloc m_staging;
DxvkStagingBuffer m_staging;
DxvkRenderTargetLayouts m_rtLayouts = { };