mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
vk: Fix for infinite hanging in the access violation handler
This commit is contained in:
parent
e6849a59a2
commit
882e949f80
1 changed files with 5 additions and 2 deletions
|
@ -739,8 +739,11 @@ VKGSRender::~VKGSRender()
|
|||
|
||||
bool VKGSRender::on_access_violation(u32 address, bool is_writing)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(m_secondary_cb_guard);
|
||||
auto result = m_texture_cache.invalidate_address(address, is_writing, false, *m_device, m_secondary_command_buffer, m_memory_type_mapping, m_swap_chain->get_present_queue());
|
||||
std::pair<bool, std::vector<vk::cached_texture_section*>> result;
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(m_secondary_cb_guard);
|
||||
result = std::move(m_texture_cache.invalidate_address(address, is_writing, false, *m_device, m_secondary_command_buffer, m_memory_type_mapping, m_swap_chain->get_present_queue()));
|
||||
}
|
||||
|
||||
if (!result.first)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue