1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2025-01-31 12:31:45 +01:00

rsx: Use relaxed store on fifo ctrl registers

This commit is contained in:
eladash 2019-03-14 18:30:19 +02:00 committed by Ivan
parent a3f65084df
commit 801e6114b6
2 changed files with 3 additions and 4 deletions

View File

@ -60,8 +60,7 @@ namespace rsx
}
// Update ctrl registers
m_ctrl->get = get;
m_internal_get = get;
m_ctrl->get.release(m_internal_get = get);
m_remaining_commands = 0;
// Clear memwatch spinner
@ -167,7 +166,7 @@ namespace rsx
if (!count)
{
m_ctrl->get.store(m_internal_get + 4);
m_ctrl->get.release(m_internal_get + 4);
data.reg = FIFO_NOP;
return;
}

View File

@ -114,7 +114,7 @@ namespace rsx
~FIFO_control() {}
u32 get_pos() { return m_internal_get; }
void sync_get() { m_ctrl->get.store(m_internal_get); }
void sync_get() { m_ctrl->get.release(m_internal_get); }
void inc_get(bool wait);
void set_get(u32 get);
void set_put(u32 put);