mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12: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)
|
bool VKGSRender::on_access_violation(u32 address, bool is_writing)
|
||||||
{
|
{
|
||||||
|
std::pair<bool, std::vector<vk::cached_texture_section*>> result;
|
||||||
|
{
|
||||||
std::lock_guard<std::mutex> lock(m_secondary_cb_guard);
|
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());
|
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)
|
if (!result.first)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue