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:
parent
ccecc664ab
commit
8ce83cabca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user