fix for mutex deadlock in ClearPipelineStateCache after recent changes
This commit is contained in:
@@ -5701,15 +5701,12 @@ std::mutex queue_locker;
|
||||
|
||||
void GraphicsDevice_DX12::ClearPipelineStateCache()
|
||||
{
|
||||
allocationhandler->destroylocker.lock();
|
||||
|
||||
pipelines_global.clear();
|
||||
|
||||
for (auto& x : commandlists)
|
||||
{
|
||||
x->pipelines_worker.clear();
|
||||
}
|
||||
allocationhandler->destroylocker.unlock();
|
||||
}
|
||||
|
||||
Texture GraphicsDevice_DX12::GetBackBuffer(const SwapChain* swapchain) const
|
||||
|
||||
@@ -6795,8 +6795,6 @@ using namespace vulkan_internal;
|
||||
}
|
||||
void GraphicsDevice_Vulkan::ClearPipelineStateCache()
|
||||
{
|
||||
allocationhandler->destroylocker.lock();
|
||||
|
||||
layout_locker.lock();
|
||||
pso_layouts.clear();
|
||||
layout_locker.unlock();
|
||||
@@ -6807,7 +6805,6 @@ using namespace vulkan_internal;
|
||||
{
|
||||
x->pipelines_worker.clear();
|
||||
}
|
||||
allocationhandler->destroylocker.unlock();
|
||||
|
||||
if (pipelineCache != VK_NULL_HANDLE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user