mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-22 15:04:34 +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)
|
||||
|
||||
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><!--header-->
|
||||
<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 />
|
||||
License: MIT</p>
|
||||
<p ><b>API documentation divided into groups:</b> <a href="modules.html">Modules</a></p>
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
/** \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
|
||||
License: MIT
|
||||
|
@ -58,7 +58,6 @@ enum CONFIG_TYPE
|
||||
};
|
||||
|
||||
static constexpr CONFIG_TYPE ConfigType = CONFIG_TYPE_AVERAGE;
|
||||
//static constexpr CONFIG_TYPE ConfigType = CONFIG_TYPE_LARGE;
|
||||
|
||||
enum class FREE_ORDER { FORWARD, BACKWARD, RANDOM, COUNT };
|
||||
|
||||
@ -1755,13 +1754,13 @@ static void TestJson()
|
||||
localCreateInfo.usage = VMA_MEMORY_USAGE_CPU_ONLY;
|
||||
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;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
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);
|
||||
break;
|
||||
}
|
||||
@ -1771,7 +1770,7 @@ static void TestJson()
|
||||
imgCreateInfo.extent.width = 512;
|
||||
imgCreateInfo.extent.height = 1;
|
||||
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);
|
||||
break;
|
||||
}
|
||||
@ -1781,12 +1780,14 @@ static void TestJson()
|
||||
imgCreateInfo.extent.width = 1024;
|
||||
imgCreateInfo.extent.height = 512;
|
||||
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);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(alloc)
|
||||
{
|
||||
switch (data)
|
||||
{
|
||||
case 1:
|
||||
@ -1803,6 +1804,7 @@ static void TestJson()
|
||||
allocs.emplace_back(alloc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -4120,7 +4122,8 @@ static void TestLinearAllocator()
|
||||
TEST(i == 0 || allocInfo.offset > prevOffset);
|
||||
bufInfo.push_back(newBufInfo);
|
||||
prevOffset = allocInfo.offset;
|
||||
bufSumSize += bufCreateInfo.size;
|
||||
TEST(allocInfo.size >= bufCreateInfo.size);
|
||||
bufSumSize += allocInfo.size;
|
||||
}
|
||||
|
||||
// Validate pool stats.
|
||||
|
@ -60,7 +60,7 @@ include all public interface declarations. Example:
|
||||
//#define VMA_MAPPING_HYSTERESIS_ENABLED 0
|
||||
|
||||
//#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 1000000 // Vulkan 1.0
|
||||
|
||||
|
@ -35,8 +35,8 @@ static const char* const SHADER_PATH1 = "./";
|
||||
static const char* const SHADER_PATH2 = "../bin/";
|
||||
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 APP_TITLE_A = "Vulkan Memory Allocator Sample 3.0.0";
|
||||
static const wchar_t* const APP_TITLE_W = L"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.1";
|
||||
|
||||
static const bool VSYNC = true;
|
||||
static const uint32_t COMMAND_BUFFER_COUNT = 2;
|
||||
|
@ -25,7 +25,7 @@ import json
|
||||
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_MARGIN = 8
|
||||
TEXT_MARGIN = 4
|
||||
|
Loading…
Reference in New Issue
Block a user