mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-29 09:54:35 +00:00
Releasing version 3.0.1
Some fixes in tests for Nvidia cards.
This commit is contained in:
parent
b77238c92c
commit
a6bfc23725
@ -1,3 +1,9 @@
|
|||||||
|
# 3.0.1 (2022-05-26)
|
||||||
|
|
||||||
|
- Fixes in defragmentation algorithm.
|
||||||
|
- Fixes in GpuMemDumpVis.py regarding image height calculation.
|
||||||
|
- Other bug fixes, optimizations, and improvements in the code and documentation.
|
||||||
|
|
||||||
# 3.0.0 (2022-03-25)
|
# 3.0.0 (2022-03-25)
|
||||||
|
|
||||||
It has been a long time since the previous official release, so hopefully everyone has been using the latest code from "master" branch, which is always maintained in a good state, not the old version. For completeness, here is the list of changes since v2.3.0. The major version number has changed, so there are some compatibility-breaking changes, but the basic API stays the same and is mostly backward-compatible.
|
It has been a long time since the previous official release, so hopefully everyone has been using the latest code from "master" branch, which is always maintained in a good state, not the old version. For completeness, here is the list of changes since v2.3.0. The major version number has changed, so there are some compatibility-breaking changes, but the basic API stays the same and is mostly backward-compatible.
|
||||||
|
Binary file not shown.
@ -65,7 +65,7 @@ $(function() {
|
|||||||
<div class="headertitle"><div class="title">Vulkan Memory Allocator </div></div>
|
<div class="headertitle"><div class="title">Vulkan Memory Allocator </div></div>
|
||||||
</div><!--header-->
|
</div><!--header-->
|
||||||
<div class="contents">
|
<div class="contents">
|
||||||
<div class="textblock"><p ><b>Version 3.0.1-development (2022-03-28)</b></p>
|
<div class="textblock"><p ><b>Version 3.0.1 (2022-05-26)</b></p>
|
||||||
<p >Copyright (c) 2017-2022 Advanced Micro Devices, Inc. All rights reserved. <br />
|
<p >Copyright (c) 2017-2022 Advanced Micro Devices, Inc. All rights reserved. <br />
|
||||||
License: MIT</p>
|
License: MIT</p>
|
||||||
<p ><b>API documentation divided into groups:</b> <a href="modules.html">Modules</a></p>
|
<p ><b>API documentation divided into groups:</b> <a href="modules.html">Modules</a></p>
|
||||||
|
@ -118,7 +118,7 @@ Public Attributes</h2></td></tr>
|
|||||||
<tr class="memdesc:a9d8d1b05d2b1e7e1d9b27f6f585acf9c"><td class="mdescLeft"> </td><td class="mdescRight">Fetch "vkGetBufferMemoryRequirements2" on Vulkan >= 1.1, fetch "vkGetBufferMemoryRequirements2KHR" when using VK_KHR_dedicated_allocation extension. <a href="struct_vma_vulkan_functions.html#a9d8d1b05d2b1e7e1d9b27f6f585acf9c">More...</a><br /></td></tr>
|
<tr class="memdesc:a9d8d1b05d2b1e7e1d9b27f6f585acf9c"><td class="mdescLeft"> </td><td class="mdescRight">Fetch "vkGetBufferMemoryRequirements2" on Vulkan >= 1.1, fetch "vkGetBufferMemoryRequirements2KHR" when using VK_KHR_dedicated_allocation extension. <a href="struct_vma_vulkan_functions.html#a9d8d1b05d2b1e7e1d9b27f6f585acf9c">More...</a><br /></td></tr>
|
||||||
<tr class="separator:a9d8d1b05d2b1e7e1d9b27f6f585acf9c"><td class="memSeparator" colspan="2"> </td></tr>
|
<tr class="separator:a9d8d1b05d2b1e7e1d9b27f6f585acf9c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||||
<tr class="memitem:a9cdcdc1e2b2ea7c571f7d27e30ba6875"><td class="memItemLeft" align="right" valign="top">PFN_vkGetImageMemoryRequirements2KHR </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vma_vulkan_functions.html#a9cdcdc1e2b2ea7c571f7d27e30ba6875">vkGetImageMemoryRequirements2KHR</a></td></tr>
|
<tr class="memitem:a9cdcdc1e2b2ea7c571f7d27e30ba6875"><td class="memItemLeft" align="right" valign="top">PFN_vkGetImageMemoryRequirements2KHR </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vma_vulkan_functions.html#a9cdcdc1e2b2ea7c571f7d27e30ba6875">vkGetImageMemoryRequirements2KHR</a></td></tr>
|
||||||
<tr class="memdesc:a9cdcdc1e2b2ea7c571f7d27e30ba6875"><td class="mdescLeft"> </td><td class="mdescRight">Fetch "vkGetImageMemoryRequirements 2" on Vulkan >= 1.1, fetch "vkGetImageMemoryRequirements2KHR" when using VK_KHR_dedicated_allocation extension. <a href="struct_vma_vulkan_functions.html#a9cdcdc1e2b2ea7c571f7d27e30ba6875">More...</a><br /></td></tr>
|
<tr class="memdesc:a9cdcdc1e2b2ea7c571f7d27e30ba6875"><td class="mdescLeft"> </td><td class="mdescRight">Fetch "vkGetImageMemoryRequirements2" on Vulkan >= 1.1, fetch "vkGetImageMemoryRequirements2KHR" when using VK_KHR_dedicated_allocation extension. <a href="struct_vma_vulkan_functions.html#a9cdcdc1e2b2ea7c571f7d27e30ba6875">More...</a><br /></td></tr>
|
||||||
<tr class="separator:a9cdcdc1e2b2ea7c571f7d27e30ba6875"><td class="memSeparator" colspan="2"> </td></tr>
|
<tr class="separator:a9cdcdc1e2b2ea7c571f7d27e30ba6875"><td class="memSeparator" colspan="2"> </td></tr>
|
||||||
<tr class="memitem:a0c4907235aab9df2767b79836afa2dc9"><td class="memItemLeft" align="right" valign="top">PFN_vkBindBufferMemory2KHR </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vma_vulkan_functions.html#a0c4907235aab9df2767b79836afa2dc9">vkBindBufferMemory2KHR</a></td></tr>
|
<tr class="memitem:a0c4907235aab9df2767b79836afa2dc9"><td class="memItemLeft" align="right" valign="top">PFN_vkBindBufferMemory2KHR </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_vma_vulkan_functions.html#a0c4907235aab9df2767b79836afa2dc9">vkBindBufferMemory2KHR</a></td></tr>
|
||||||
<tr class="memdesc:a0c4907235aab9df2767b79836afa2dc9"><td class="mdescLeft"> </td><td class="mdescRight">Fetch "vkBindBufferMemory2" on Vulkan >= 1.1, fetch "vkBindBufferMemory2KHR" when using VK_KHR_bind_memory2 extension. <a href="struct_vma_vulkan_functions.html#a0c4907235aab9df2767b79836afa2dc9">More...</a><br /></td></tr>
|
<tr class="memdesc:a0c4907235aab9df2767b79836afa2dc9"><td class="mdescLeft"> </td><td class="mdescRight">Fetch "vkBindBufferMemory2" on Vulkan >= 1.1, fetch "vkBindBufferMemory2KHR" when using VK_KHR_bind_memory2 extension. <a href="struct_vma_vulkan_functions.html#a0c4907235aab9df2767b79836afa2dc9">More...</a><br /></td></tr>
|
||||||
@ -415,7 +415,7 @@ Public Attributes</h2></td></tr>
|
|||||||
</table>
|
</table>
|
||||||
</div><div class="memdoc">
|
</div><div class="memdoc">
|
||||||
|
|
||||||
<p>Fetch "vkGetImageMemoryRequirements 2" on Vulkan >= 1.1, fetch "vkGetImageMemoryRequirements2KHR" when using VK_KHR_dedicated_allocation extension. </p>
|
<p>Fetch "vkGetImageMemoryRequirements2" on Vulkan >= 1.1, fetch "vkGetImageMemoryRequirements2KHR" when using VK_KHR_dedicated_allocation extension. </p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
/** \mainpage Vulkan Memory Allocator
|
/** \mainpage Vulkan Memory Allocator
|
||||||
|
|
||||||
<b>Version 3.0.1-development (2022-03-28)</b>
|
<b>Version 3.0.1 (2022-05-26)</b>
|
||||||
|
|
||||||
Copyright (c) 2017-2022 Advanced Micro Devices, Inc. All rights reserved. \n
|
Copyright (c) 2017-2022 Advanced Micro Devices, Inc. All rights reserved. \n
|
||||||
License: MIT
|
License: MIT
|
||||||
|
@ -58,7 +58,6 @@ enum CONFIG_TYPE
|
|||||||
};
|
};
|
||||||
|
|
||||||
static constexpr CONFIG_TYPE ConfigType = CONFIG_TYPE_AVERAGE;
|
static constexpr CONFIG_TYPE ConfigType = CONFIG_TYPE_AVERAGE;
|
||||||
//static constexpr CONFIG_TYPE ConfigType = CONFIG_TYPE_LARGE;
|
|
||||||
|
|
||||||
enum class FREE_ORDER { FORWARD, BACKWARD, RANDOM, COUNT };
|
enum class FREE_ORDER { FORWARD, BACKWARD, RANDOM, COUNT };
|
||||||
|
|
||||||
@ -1755,13 +1754,13 @@ static void TestJson()
|
|||||||
localCreateInfo.usage = VMA_MEMORY_USAGE_CPU_ONLY;
|
localCreateInfo.usage = VMA_MEMORY_USAGE_CPU_ONLY;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
TEST(vmaAllocateMemory(g_hAllocator, &memReq, &localCreateInfo, &alloc, nullptr) == VK_SUCCESS);
|
TEST(vmaAllocateMemory(g_hAllocator, &memReq, &localCreateInfo, &alloc, nullptr) == VK_SUCCESS || alloc == VK_NULL_HANDLE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
VkBuffer buffer;
|
VkBuffer buffer;
|
||||||
TEST(vmaCreateBuffer(g_hAllocator, &buffCreateInfo, &allocCreateInfo, &buffer, &alloc, nullptr) == VK_SUCCESS);
|
TEST(vmaCreateBuffer(g_hAllocator, &buffCreateInfo, &allocCreateInfo, &buffer, &alloc, nullptr) == VK_SUCCESS || alloc == VK_NULL_HANDLE);
|
||||||
vkDestroyBuffer(g_hDevice, buffer, g_Allocs);
|
vkDestroyBuffer(g_hDevice, buffer, g_Allocs);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1771,7 +1770,7 @@ static void TestJson()
|
|||||||
imgCreateInfo.extent.width = 512;
|
imgCreateInfo.extent.width = 512;
|
||||||
imgCreateInfo.extent.height = 1;
|
imgCreateInfo.extent.height = 1;
|
||||||
VkImage image;
|
VkImage image;
|
||||||
TEST(vmaCreateImage(g_hAllocator, &imgCreateInfo, &allocCreateInfo, &image, &alloc, nullptr) == VK_SUCCESS);
|
TEST(vmaCreateImage(g_hAllocator, &imgCreateInfo, &allocCreateInfo, &image, &alloc, nullptr) == VK_SUCCESS || alloc == VK_NULL_HANDLE);
|
||||||
vkDestroyImage(g_hDevice, image, g_Allocs);
|
vkDestroyImage(g_hDevice, image, g_Allocs);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1781,12 +1780,14 @@ static void TestJson()
|
|||||||
imgCreateInfo.extent.width = 1024;
|
imgCreateInfo.extent.width = 1024;
|
||||||
imgCreateInfo.extent.height = 512;
|
imgCreateInfo.extent.height = 512;
|
||||||
VkImage image;
|
VkImage image;
|
||||||
TEST(vmaCreateImage(g_hAllocator, &imgCreateInfo, &allocCreateInfo, &image, &alloc, nullptr) == VK_SUCCESS);
|
TEST(vmaCreateImage(g_hAllocator, &imgCreateInfo, &allocCreateInfo, &image, &alloc, nullptr) == VK_SUCCESS || alloc == VK_NULL_HANDLE);
|
||||||
vkDestroyImage(g_hDevice, image, g_Allocs);
|
vkDestroyImage(g_hDevice, image, g_Allocs);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(alloc)
|
||||||
|
{
|
||||||
switch (data)
|
switch (data)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
@ -1803,6 +1804,7 @@ static void TestJson()
|
|||||||
allocs.emplace_back(alloc);
|
allocs.emplace_back(alloc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4120,7 +4122,8 @@ static void TestLinearAllocator()
|
|||||||
TEST(i == 0 || allocInfo.offset > prevOffset);
|
TEST(i == 0 || allocInfo.offset > prevOffset);
|
||||||
bufInfo.push_back(newBufInfo);
|
bufInfo.push_back(newBufInfo);
|
||||||
prevOffset = allocInfo.offset;
|
prevOffset = allocInfo.offset;
|
||||||
bufSumSize += bufCreateInfo.size;
|
TEST(allocInfo.size >= bufCreateInfo.size);
|
||||||
|
bufSumSize += allocInfo.size;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate pool stats.
|
// Validate pool stats.
|
||||||
|
@ -60,7 +60,7 @@ include all public interface declarations. Example:
|
|||||||
//#define VMA_MAPPING_HYSTERESIS_ENABLED 0
|
//#define VMA_MAPPING_HYSTERESIS_ENABLED 0
|
||||||
|
|
||||||
//#define VMA_VULKAN_VERSION 1003000 // Vulkan 1.3
|
//#define VMA_VULKAN_VERSION 1003000 // Vulkan 1.3
|
||||||
#define VMA_VULKAN_VERSION 1002000 // Vulkan 1.2
|
//#define VMA_VULKAN_VERSION 1002000 // Vulkan 1.2
|
||||||
//#define VMA_VULKAN_VERSION 1001000 // Vulkan 1.1
|
//#define VMA_VULKAN_VERSION 1001000 // Vulkan 1.1
|
||||||
//#define VMA_VULKAN_VERSION 1000000 // Vulkan 1.0
|
//#define VMA_VULKAN_VERSION 1000000 // Vulkan 1.0
|
||||||
|
|
||||||
|
@ -35,8 +35,8 @@ static const char* const SHADER_PATH1 = "./";
|
|||||||
static const char* const SHADER_PATH2 = "../bin/";
|
static const char* const SHADER_PATH2 = "../bin/";
|
||||||
static const wchar_t* const WINDOW_CLASS_NAME = L"VULKAN_MEMORY_ALLOCATOR_SAMPLE";
|
static const wchar_t* const WINDOW_CLASS_NAME = L"VULKAN_MEMORY_ALLOCATOR_SAMPLE";
|
||||||
static const char* const VALIDATION_LAYER_NAME = "VK_LAYER_KHRONOS_validation";
|
static const char* const VALIDATION_LAYER_NAME = "VK_LAYER_KHRONOS_validation";
|
||||||
static const char* const APP_TITLE_A = "Vulkan Memory Allocator Sample 3.0.0";
|
static const char* const APP_TITLE_A = "Vulkan Memory Allocator Sample 3.0.1";
|
||||||
static const wchar_t* const APP_TITLE_W = L"Vulkan Memory Allocator Sample 3.0.0";
|
static const wchar_t* const APP_TITLE_W = L"Vulkan Memory Allocator Sample 3.0.1";
|
||||||
|
|
||||||
static const bool VSYNC = true;
|
static const bool VSYNC = true;
|
||||||
static const uint32_t COMMAND_BUFFER_COUNT = 2;
|
static const uint32_t COMMAND_BUFFER_COUNT = 2;
|
||||||
|
@ -25,7 +25,7 @@ import json
|
|||||||
from PIL import Image, ImageDraw, ImageFont
|
from PIL import Image, ImageDraw, ImageFont
|
||||||
|
|
||||||
|
|
||||||
PROGRAM_VERSION = 'Vulkan/D3D12 Memory Allocator Dump Visualization 3.0.0'
|
PROGRAM_VERSION = 'Vulkan/D3D12 Memory Allocator Dump Visualization 3.0.1'
|
||||||
IMG_WIDTH = 1200
|
IMG_WIDTH = 1200
|
||||||
IMG_MARGIN = 8
|
IMG_MARGIN = 8
|
||||||
TEXT_MARGIN = 4
|
TEXT_MARGIN = 4
|
||||||
|
Loading…
Reference in New Issue
Block a user