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

[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

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