Adam Sawicki
4a2be4ee40
Minor tweak in sparse binding tests.
2018-12-06 12:44:49 +01:00
Adam Sawicki
da6c19423d
Wrote test for sparse image binding with testing actual content - function BaseImage::TestContent. It uses vkCopyBufferToImage and then a compute shader to read back pixels of the image.
2018-12-05 17:34:34 +01:00
Adam Sawicki
978fcf54ab
Testing environment: Added class StagingBufferCollection, functions UploadGpuData, ValidateGpuData, TestGpuData, in preparation for testing defragmentation of GPU memory.
...
# Conflicts:
# src/Tests.cpp
# src/VulkanSample.cpp
2018-12-05 14:38:48 +01:00
Adam Sawicki
6a6d8c6ea2
Merge branch 'master' into sparse_binding_example
...
# Conflicts:
# docs/html/vk__mem__alloc_8h.html
# docs/html/vk__mem__alloc_8h_source.html
# src/Tests.cpp
# src/VulkanSample.cpp
# src/vk_mem_alloc.h
2018-12-05 13:20:32 +01:00
Adam Sawicki
3b392258e2
Documentation: Added mention of VK_AMD_memory_overallocation_behavior extension.
2018-11-20 11:33:07 +01:00
Adam Sawicki
df2404b6a5
VmaReplay: Added support for Windows end of lines.
2018-11-20 11:29:17 +01:00
Adam Sawicki
99f2d3543c
Minor update in documentation.
2018-11-16 13:48:11 +01:00
Adam Sawicki
7f97202add
Updated documentation of memory mapping with known bug in MoltenVK, based on #47 . Thanks @DiegoAce !
2018-11-16 13:43:34 +01:00
Adam Sawicki
b0c363693f
Added function vmaResizeAllocation.
...
Added tests: function TestResize. Bumped CSV recording file format version to 1.4.
2018-11-13 16:17:38 +01:00
Adam Sawicki
1146b45c63
Fixed aligned_alloc for Android API < 16. Issue #49 . Thanks @zhaijialong !
2018-11-09 11:21:03 +01:00
Adam Sawicki
7a6e442b66
Fixes in documentation: "Features not supported".
2018-11-08 18:46:04 +01:00
Adam Sawicki
370ab184f8
Changed functions to validate and return VK_ERROR_VALIDATION_FAILED_EXT when trying to allocate memory of size 0, create buffer with size 0, or image with one of the dimensions 0.
...
That's because vkCreateBuffer returns VK_SUCCESS for buffer with size = 0, so VMA then proceeded to allocation of size 0, which is a critical error, checked by an assert, but apparently some users don't enable asserts in VMA.
Added tests: function TestInvalidAllocations.
2018-11-08 16:31:00 +01:00
Adam Sawicki
3a7249f313
VmaDumpVis.py: Small fix. Bumped tool version number, which I forgot to do before.
2018-10-19 11:17:30 +02:00
Adam Sawicki
fc9db8dda7
Minor addition to documentation. #46
2018-10-18 12:03:50 +02:00
Adam Sawicki
b03d51e693
Updates to README.md, including new library usages.
2018-10-17 10:15:29 +02:00
Adam Sawicki
fa87ae34a6
Small addition to documentation.
2018-10-15 18:15:11 +02:00
Adam Sawicki
ad0989bfb4
Fixed bug in VmaAllocator_T::Defragment.
2018-10-09 13:26:33 +02:00
Adam Sawicki
b8d34d5e6a
Replaced assert() with new macro TEST() in all tests, to check conditions also in Release configuration.
...
# Conflicts:
# src/SparseBindingTest.cpp
# src/Tests.cpp
# src/VulkanSample.cpp
2018-10-03 17:41:20 +02:00
Adam Sawicki
1f7f8afdd7
Fixed tests for NVIDIA, where it asserted with OUT_OF_MEMORY, probably due to higher alignment requirements.
2018-10-03 17:37:55 +02:00
Adam Sawicki
a7d7769959
Replaced assert() with new macro TEST() in all tests, to check conditions also in Release configuration.
2018-10-03 16:15:27 +02:00
Adam Sawicki
4868c1f523
Fixed tests for NVIDIA, where it asserted with OUT_OF_MEMORY, probably due to higher alignment requirements.
2018-10-03 15:57:11 +02:00
Adam Sawicki
2e4d3eff98
Added BasicTestAllocatePages() - test for vmaAllocateMemoryPages, vmaFreeMemoryPages.
2018-10-03 15:48:17 +02:00
Adam Sawicki
d062b784d3
Added functions: vmaAllocateMemoryPages, vmaFreeMemoryPages to create and destroy multiple allocations at once.
2018-10-03 15:26:22 +02:00
Adam Sawicki
51fa96660e
Wrote basic test for sparse binding.
2018-10-03 13:44:29 +02:00
Adam Sawicki
5975c83402
TravisCI - updated Vulkan SDK to 1.1.82.1. Try 4.
2018-09-28 16:08:29 +02:00
Adam Sawicki
583129f8b9
TravisCI - updated Vulkan SDK to 1.1.82.1. Try 3.
2018-09-28 15:36:52 +02:00
Adam Sawicki
3a3d0c425d
TravisCI - updated Vulkan SDK to 1.1.82.1. Try 2. I knew there will be problems :(
2018-09-28 15:29:41 +02:00
Adam Sawicki
419f7cdbae
TravisCI - updated Vulkan SDK to 1.1.82.1. #1
2018-09-28 15:14:54 +02:00
Adam Sawicki
3ea9eb422e
Updated Premake to version 5.0.0-alpha12. Switched to Visual Studio 2017. Rebuilt Windows Release executables. Rebuilt shaders with latest Vulkan SDK 1.1.82.1.
2018-09-28 14:59:44 +02:00
Adam Sawicki
7ce9630bbf
Improved documentation chapters: Defragmentation, vmaDefragment(), Features not supported.
2018-09-28 14:51:09 +02:00
Adam Sawicki
6aa6255741
Fixing macro VMA_VALIDATE for Linux compilation.
2018-09-24 15:16:47 +02:00
Adam Sawicki
02246f3eb8
CHANGING BRANCHING STRATEGY! No more "development" branch, now in-progress development will happen on "master".
...
Bumped version number to "development".
2018-09-24 15:10:06 +02:00
Adam Sawicki
072d660eb4
Merge branch 'development'
...
# Conflicts:
# src/vk_mem_alloc.h
2018-09-24 15:06:56 +02:00
Adam Sawicki
f95e85e508
Merge pull request #44 from hrydgard/nominmax-fix
...
Avoid redefinition warnings of NOMINMAX by checking if it's already been defined.
2018-09-24 12:38:10 +02:00
Henrik Rydgård
14f79094d4
Avoid redefinition warnings of NOMINMAX if you've already defined it.
2018-09-24 11:18:41 +02:00
Adam Sawicki
3951aa5bc3
Merge branch 'allocation_defragmentation_strategies' into development
...
# Conflicts:
# docs/html/search/all_f.js
# docs/html/vk__mem__alloc_8h.html
# docs/html/vk__mem__alloc_8h_source.html
# src/vk_mem_alloc.h
2018-09-21 16:48:42 +02:00
Adam Sawicki
c6432d1d45
Buddy allocation algorithm finished and documented!
2018-09-21 16:44:16 +02:00
Adam Sawicki
6f09752db7
Fixed VmaDumpVis.py to respect new "Algorithm" parameter.
2018-09-21 15:30:55 +02:00
Adam Sawicki
0591535eb1
VmaBlockMetadata_Buddy: Fixed allocation of Node objects to use provided CPU allocation callbacks.
2018-09-21 15:23:32 +02:00
Adam Sawicki
1e8cf94558
VmaBlockMetadata_Buddy: Added (simple way of) respecting bufferImageGranularity.
...
Minor fixes in documentation.
2018-09-21 15:10:04 +02:00
Adam Sawicki
9933c5cadf
VmaBlockMetadata_Buddy: Added respecting of allocation alignment.
2018-09-21 14:57:24 +02:00
Adam Sawicki
a01d4587df
VmaBlockMetadata_Buddy: Introduced m_LevelCount to limit number of levels in use by particular memory block, considering new constant MIN_NODE_SIZE.
2018-09-21 14:22:35 +02:00
Adam Sawicki
d6e6d6bdf2
VmaBlockMetadata_Buddy: Introduced concept of m_UsableSize to always use powers of two even when memory block size is not.
2018-09-21 14:07:02 +02:00
Adam Sawicki
a79d2746f1
Added dummy implementation of VmaBlockMetadata_Buddy methods related to lost allocations. Lost allocations are not supported in buddy algorithm for now.
2018-09-21 13:26:12 +02:00
Adam Sawicki
14d9e1a938
Minor optimization: Skip call to vkUnmapMemory before vkFreeMemory for dedicated allocations, which is allowed by the spec.
2018-09-17 17:06:42 +02:00
Adam Sawicki
1e425dda03
Added #ifdef NOMINMAX. Thanks Krzysztof Kondrak !
2018-09-10 16:52:13 +02:00
Adam Sawicki
c77a123a89
Fixed #include <windows.h> for compilation under Windows mingw64. Issue #41 thanks @turol !
2018-09-10 14:43:04 +02:00
Adam Sawicki
df1b88d387
Fixed formatting string in call to fprintf in VmaRecorder::RecordCreatePool. Issue #40 thanks @baldurk !
2018-09-10 14:39:45 +02:00
Adam Sawicki
f305aebdfd
Fixed version number in source file.
2018-09-10 14:07:32 +02:00
Adam Sawicki
e929bab5d8
Prepared version 2.1.0 final. Rebuilt binaries. Updated CHANGELOG.md. Rebuilt Doxygen dovcumentation (with new Doxygen version).
2018-09-10 11:14:05 +02:00