vulkan zcull: Fix deadlock in zcull flush waiting

Block adding additional flush requests until the first ones are treated (by adding missing lock)
This commit is contained in:
elad 2019-03-02 16:55:17 +02:00 committed by Ivan
parent fc253165e2
commit bd259c8ae4

View File

@ -3581,6 +3581,7 @@ void VKGSRender::get_occlusion_query_result(rsx::reports::occlusion_query_info*
{
if (data.command_buffer_to_wait == m_current_command_buffer)
{
std::lock_guard lock(m_flush_queue_mutex);
flush_command_queue();
//Clear any deferred flush requests from previous call to get_query_status()