1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 04:29:15 +01:00

[dxvk] Add flag to avoid creating dedicated allocations

This commit is contained in:
Philip Rebohle 2025-03-04 02:05:34 +01:00
parent 77216867cc
commit 26ed914707
2 changed files with 5 additions and 0 deletions

View File

@ -932,6 +932,9 @@ namespace dxvk {
dedicatedRequirements.prefersDedicatedAllocation = VK_TRUE;
}
if (!dedicatedRequirements.requiresDedicatedAllocation && allocationInfo.mode.test(DxvkAllocationMode::NoDedicated))
dedicatedRequirements.prefersDedicatedAllocation = VK_FALSE;
Rc<DxvkResourceAllocation> allocation;
if (!(createInfo.flags & VK_IMAGE_CREATE_SPARSE_BINDING_BIT)) {

View File

@ -959,6 +959,8 @@ namespace dxvk {
/// If set, the allocation will only succeed if it
/// can be suballocated from an existing chunk.
NoAllocation = 1,
/// Avoid using a dedicated allocation for this resource
NoDedicated = 2,
eFlagEnum
};