Merge 277402bfa1
into 149cf26e12
This commit is contained in:
commit
b0c8dc4acf
|
@ -457,7 +457,7 @@ uint32_t findMemoryTypeIndex(VkPhysicalDevice physicalDevice, VkMemoryRequiremen
|
||||||
if ((memRequirements.memoryTypeBits & (1 << i)) && (memProperties.memoryTypes[i].propertyFlags & requestedProperties)) {
|
if ((memRequirements.memoryTypeBits & (1 << i)) && (memProperties.memoryTypes[i].propertyFlags & requestedProperties)) {
|
||||||
|
|
||||||
// if just device-local memory is requested, make sure this is the invisible heap to prevent over-subscribing the local heap
|
// if just device-local memory is requested, make sure this is the invisible heap to prevent over-subscribing the local heap
|
||||||
if (requestedProperties == VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT && (memProperties.memoryTypes[i].propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT))
|
if (requestedProperties == VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT && (memProperties.memoryTypes[i].propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) && bestCandidate != UINT32_MAX)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
bestCandidate = i;
|
bestCandidate = i;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user