diff options
author | 2017-04-26 15:10:00 -0400 | |
---|---|---|
committer | 2017-04-27 13:13:12 +0000 | |
commit | 4f7d97c16fd159f72d2ad9c105542e2c6c097ad6 (patch) | |
tree | fa3d0b6a06892f82641a094400e090e72a4b555d /src/gpu/vk/GrVkGpu.cpp | |
parent | 2feb7969299d3420a5bd4a7a94171a85ac9ecc9b (diff) |
Change vulkan image memory allocation back to using sub allocation
Bug: skia:
Change-Id: I8e1352c8d615b5a54ceba42500f0781767a1bd2d
Reviewed-on: https://skia-review.googlesource.com/14401
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/vk/GrVkGpu.cpp')
-rw-r--r-- | src/gpu/vk/GrVkGpu.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp index d8f1037f07..be5b0c7f49 100644 --- a/src/gpu/vk/GrVkGpu.cpp +++ b/src/gpu/vk/GrVkGpu.cpp @@ -146,10 +146,7 @@ GrVkGpu::GrVkGpu(GrContext* context, const GrContextOptions& options, // set up our heaps fHeaps[kLinearImage_Heap].reset(new GrVkHeap(this, GrVkHeap::kSubAlloc_Strategy, 16*1024*1024)); - // We want the OptimalImage_Heap to use a SubAlloc_strategy but it occasionally causes the - // device to run out of memory. Most likely this is caused by fragmentation in the device heap - // and we can't allocate more. Until we get a fix moving this to SingleAlloc. - fHeaps[kOptimalImage_Heap].reset(new GrVkHeap(this, GrVkHeap::kSingleAlloc_Strategy, 64*1024*1024)); + fHeaps[kOptimalImage_Heap].reset(new GrVkHeap(this, GrVkHeap::kSubAlloc_Strategy, 64*1024*1024)); fHeaps[kSmallOptimalImage_Heap].reset(new GrVkHeap(this, GrVkHeap::kSubAlloc_Strategy, 2*1024*1024)); fHeaps[kVertexBuffer_Heap].reset(new GrVkHeap(this, GrVkHeap::kSingleAlloc_Strategy, 0)); fHeaps[kIndexBuffer_Heap].reset(new GrVkHeap(this, GrVkHeap::kSingleAlloc_Strategy, 0)); |