mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 01:08:39 +12:00
Update rsx_methods.cpp
This commit is contained in:
parent
651e58f443
commit
3b15a6b39e
1 changed files with 2 additions and 6 deletions
|
@ -83,14 +83,10 @@ namespace rsx
|
||||||
{
|
{
|
||||||
void set_reference(thread* rsx, u32 /*reg*/, u32 arg)
|
void set_reference(thread* rsx, u32 /*reg*/, u32 arg)
|
||||||
{
|
{
|
||||||
|
rsx->sync();
|
||||||
|
|
||||||
// Write ref+get (get will be written again with the same value at command end)
|
// Write ref+get (get will be written again with the same value at command end)
|
||||||
auto& dma = vm::_ref<RsxDmaControl>(rsx->dma_address);
|
auto& dma = vm::_ref<RsxDmaControl>(rsx->dma_address);
|
||||||
|
|
||||||
if (arg != dma.ref)
|
|
||||||
{
|
|
||||||
rsx->sync();
|
|
||||||
}
|
|
||||||
|
|
||||||
dma.get.release(rsx->fifo_ctrl->get_pos());
|
dma.get.release(rsx->fifo_ctrl->get_pos());
|
||||||
dma.ref.store(arg);
|
dma.ref.store(arg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue