From 17182a0e37b3b6a5c0fcca6696d83fb3d8b95ec5 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 11 Feb 2019 21:26:06 -0800 Subject: Fixed issue in D3D12 backend: generate mips PSO was released while being used by the GPU --- Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp index 42ea4022..0c69d151 100644 --- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp @@ -136,6 +136,10 @@ namespace Diligent auto VkCmdPool = m_CmdPool.Release(); pDeviceVkImpl->SafeReleaseDeviceObject(std::move(VkCmdPool), ~Uint64{0}); + + pDeviceVkImpl->SafeReleaseDeviceObject(std::move(m_GenerateMipsHelper), ~Uint64{0}); + pDeviceVkImpl->SafeReleaseDeviceObject(std::move(m_GenerateMipsSRB), ~Uint64{0}); + pDeviceVkImpl->SafeReleaseDeviceObject(std::move(m_DummyVB), ~Uint64{0}); // The main reason we need to idle the GPU is because we need to make sure that all command buffers are returned to the // pool. Upload heap, dynamic heap and dynamic descriptor manager return their resources to global managers and -- cgit v1.2.3