1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 11:13:19 +01:00

d3d12: Mark semaphore location as volatile

This commit is contained in:
vlj 2015-06-26 22:00:49 +02:00 committed by Vincent Lejeune
parent a519aa8350
commit 40a3b5c918

View File

@ -1483,7 +1483,7 @@ void D3D12GSRender::semaphorePFIFOAcquire(u32 offset, u32 value)
const std::chrono::time_point<std::chrono::system_clock> enterWait = std::chrono::system_clock::now();
while (true)
{
u32 val = vm::read32(m_label_addr + offset);
volatile u32 val = vm::read32(m_label_addr + offset);
if (val == value) break;
std::chrono::time_point<std::chrono::system_clock> waitPoint = std::chrono::system_clock::now();
long long elapsedTime = std::chrono::duration_cast<std::chrono::seconds>(waitPoint - enterWait).count();