aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkAMDMemoryAllocator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/vk/GrVkAMDMemoryAllocator.cpp')
-rw-r--r--src/gpu/vk/GrVkAMDMemoryAllocator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/vk/GrVkAMDMemoryAllocator.cpp b/src/gpu/vk/GrVkAMDMemoryAllocator.cpp
index 53703a2149..21a35bc0e5 100644
--- a/src/gpu/vk/GrVkAMDMemoryAllocator.cpp
+++ b/src/gpu/vk/GrVkAMDMemoryAllocator.cpp
@@ -130,7 +130,8 @@ bool GrVkAMDMemoryAllocator::allocateMemoryForBuffer(VkBuffer buffer, BufferUsag
info.preferredFlags |= VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT;
}
- if ((AllocationPropertyFlags::kPersistentlyMapped & flags) && BufferUsage::kGpuOnly != usage) {
+ if (AllocationPropertyFlags::kPersistentlyMapped & flags) {
+ SkASSERT(BufferUsage::kGpuOnly != usage);
info.flags |= VMA_ALLOCATION_CREATE_MAPPED_BIT;
}