mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-07 06:18:23 +00:00
[TEST] Hunting down recursive mutex 1
(cherry picked from commit ab92e5fa52)
This commit is contained in:
@@ -236,8 +236,7 @@ public:
|
|||||||
}
|
}
|
||||||
PauseCounter();
|
PauseCounter();
|
||||||
const auto driver_id = device.GetDriverID();
|
const auto driver_id = device.GetDriverID();
|
||||||
if (driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY ||
|
if (driver_id == VK_DRIVER_ID_ARM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP) {
|
||||||
driver_id == VK_DRIVER_ID_ARM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP) {
|
|
||||||
pending_sync.clear();
|
pending_sync.clear();
|
||||||
sync_values_stash.clear();
|
sync_values_stash.clear();
|
||||||
return;
|
return;
|
||||||
@@ -1521,7 +1520,7 @@ bool QueryCacheRuntime::HostConditionalRenderingCompareValues(VideoCommon::Looku
|
|||||||
auto driver_id = impl->device.GetDriverID();
|
auto driver_id = impl->device.GetDriverID();
|
||||||
const bool is_gpu_high = Settings::IsGPULevelHigh();
|
const bool is_gpu_high = Settings::IsGPULevelHigh();
|
||||||
|
|
||||||
if ((!is_gpu_high && driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS) || driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY || driver_id == VK_DRIVER_ID_ARM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP) {
|
if ((!is_gpu_high && driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS) || driver_id == VK_DRIVER_ID_ARM_PROPRIETARY || driver_id == VK_DRIVER_ID_MESA_TURNIP) {
|
||||||
EndHostConditionalRendering();
|
EndHostConditionalRendering();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -241,11 +241,17 @@ void RasterizerVulkan::PrepareDraw(bool is_indexed, Func&& draw_func) {
|
|||||||
if (!pipeline) {
|
if (!pipeline) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex};
|
{
|
||||||
// update engine as channel may be different.
|
// Only resource binding/upload needs the cache locks held. The query-cache calls and the
|
||||||
pipeline->SetEngine(maxwell3d, gpu_memory);
|
// deferred draw recording below acquire their own locks, so keeping them outside this scope
|
||||||
if (!pipeline->Configure(is_indexed))
|
// avoids re-entrant locking of buffer_cache.mutex and shrinks the serialized region.
|
||||||
return;
|
std::scoped_lock lock{buffer_cache.mutex, texture_cache.mutex};
|
||||||
|
// update engine as channel may be different.
|
||||||
|
pipeline->SetEngine(maxwell3d, gpu_memory);
|
||||||
|
if (!pipeline->Configure(is_indexed)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UpdateDynamicStates();
|
UpdateDynamicStates();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user