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
{
//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;