Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/vkd3d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2019-10-01 17:01:54 +0300
committerAlexandre Julliard <julliard@winehq.org>2019-10-01 20:16:12 +0300
commit3c86b2341caabd6302b83efd0562910bd5b85d56 (patch)
tree98658ee7a9ac65c6fac07bad978cd42858872f68
parent3f1a1ffc4dacbdfb27a10c808f46d7bb4b9ffe59 (diff)
vkd3d: Do not release resources in vkResetCommandPool.
D3D12 command allocators are intended to recycle memory across resets, so we should do the same thing in vkd3d. Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
-rw-r--r--libs/vkd3d/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index ae88910a..2d6d02de 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -1648,8 +1648,8 @@ static HRESULT STDMETHODCALLTYPE d3d12_command_allocator_Reset(ID3D12CommandAllo
allocator->command_buffer_count = 0;
}
- if ((vr = VK_CALL(vkResetCommandPool(device->vk_device, allocator->vk_command_pool,
- VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT))))
+ /* The intent here is to recycle memory, so do not use RELEASE_RESOURCES_BIT here. */
+ if ((vr = VK_CALL(vkResetCommandPool(device->vk_device, allocator->vk_command_pool, 0))))
{
WARN("Resetting command pool failed, vr %d.\n", vr);
return hresult_from_vk_result(vr);