mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-03 14:50:40 +00:00
d3d12: Mark semaphore location as volatile
This commit is contained in:
parent
a519aa8350
commit
40a3b5c918
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
const std::chrono::time_point<std::chrono::system_clock> enterWait = std::chrono::system_clock::now();
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
u32 val = vm::read32(m_label_addr + offset);
|
volatile u32 val = vm::read32(m_label_addr + offset);
|
||||||
if (val == value) break;
|
if (val == value) break;
|
||||||
std::chrono::time_point<std::chrono::system_clock> waitPoint = std::chrono::system_clock::now();
|
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();
|
long long elapsedTime = std::chrono::duration_cast<std::chrono::seconds>(waitPoint - enterWait).count();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue