[dxvk] Only mark transfer buffers as transient

Otherwise we may accidentally catch things like uniform buffers as well.
This commit is contained in:
Philip Rebohle 2022-02-20 07:27:14 +01:00
parent ccecc664ab
commit 8ce83cabca
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ namespace dxvk {
// Staging buffers that can't even be used as a transfer destinations
// are likely short-lived, so we should put them on a separate memory
// pool in order to avoid fragmentation
if (DxvkBarrierSet::getAccessTypes(m_info.access) == DxvkAccess::Read)
if ((DxvkBarrierSet::getAccessTypes(m_info.access) == DxvkAccess::Read)
&& (m_info.usage & VK_BUFFER_USAGE_TRANSFER_SRC_BIT))
hints.set(DxvkMemoryFlag::Transient);
// Ask driver whether we should be using a dedicated allocation