gl: Do not attempt to re-flush an address if another thread flushes it first

This commit is contained in:
kd-11 2017-03-13 20:58:35 +03:00
parent 818dd88390
commit 2093134420

View file

@ -957,12 +957,9 @@ void GLGSRender::do_local_task()
} }
else else
{ {
//TODO: Validate flushing requests before appending to queue. //Another thread has unlocked this memory region already
//Highly unlikely that this path will be taken //Return success
LOG_ERROR(RSX, "Possible race condition for flush @address 0x%X", q.address_to_flush); q.result = true;
//Process this address
q.result = m_gl_texture_cache.flush_section(q.address_to_flush);
} }
q.processed = true; q.processed = true;