From 20931344202b55330f8b7a09a7921f7c14b77adf Mon Sep 17 00:00:00 2001 From: kd-11 Date: Mon, 13 Mar 2017 20:58:35 +0300 Subject: [PATCH] gl: Do not attempt to re-flush an address if another thread flushes it first --- rpcs3/Emu/RSX/GL/GLGSRender.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/GLGSRender.cpp b/rpcs3/Emu/RSX/GL/GLGSRender.cpp index 99777852cb..b753768015 100644 --- a/rpcs3/Emu/RSX/GL/GLGSRender.cpp +++ b/rpcs3/Emu/RSX/GL/GLGSRender.cpp @@ -957,12 +957,9 @@ void GLGSRender::do_local_task() } else { - //TODO: Validate flushing requests before appending to queue. - //Highly unlikely that this path will be taken - LOG_ERROR(RSX, "Possible race condition for flush @address 0x%X", q.address_to_flush); - - //Process this address - q.result = m_gl_texture_cache.flush_section(q.address_to_flush); + //Another thread has unlocked this memory region already + //Return success + q.result = true; } q.processed = true;