dolphin/Source
comex 06dd0ba3b4 Exit ReadDataFromFifoOnCPU, PushFifoAuxBuffer early if shutting down (GpuRunningState=false)
This was causing a race condition where the "absurdly large aux buffer"
panic alert would be triggered in the last bit of fifo processing on the
CPU thread in deterministic mode (i.e. netplay).  SyncGPU is supposed to
move the auxiliary queue data to the beginning of the containing buffer
so we don't have to deal with wraparound; if GpuRunningState is false,
however, it just returns, because it's set to false by another thread -
thus it doesn't know whether RunGpuLoop is still executing (in which
case it can't just reset the pointers, because it may still be using the
buffer) or not (in which case the condition variable it normally waits
for to avoid the previous problem will never be signaled).  However,
SyncGPU's caller PushFifoAuxBuffer wasn't aware of this, so if the
buffer was filling at just the right time, it'd stay full and that
function would complain that it was about to overflow it.  Similar
problem with ReadDataFromFifoOnCPU afaik.  Fix this by returning early
from those as well; other callers of SyncGPU should be safe.  A
*slightly* cleaner alternative would be giving the CPU thread a way to
tell when RunGpuLoop has actually exited, but whatever, this works.
2015-04-21 22:33:29 -04:00
..
Android [Android] Support arguments from Activity Monitor. 2015-03-08 08:43:25 -05:00
Core Exit ReadDataFromFifoOnCPU, PushFifoAuxBuffer early if shutting down (GpuRunningState=false) 2015-04-21 22:33:29 -04:00
DSPSpy Fix include order of files outside of Source/Core 2015-03-01 14:54:22 +01:00
DSPTool CMake: simplify some expressions 2015-01-03 13:17:57 +01:00
PCH Add missing newlines at EOF 2015-03-01 17:17:09 +01:00
UnitTests XEmitter: add PUNPCKLQDQ 2015-03-18 12:09:06 +01:00
VSProps Base.props: Remove DXSDK_DIR from the include path. 2015-04-13 21:44:40 +02:00
.clang-format
CMakeLists.txt
dolphin-emu.sln remove win32/mixed project configurations. 2015-03-14 14:07:21 -07:00