mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
VideoCommon/Fifo: Refactor to class, move to Core::System.
This commit is contained in:
parent
d250e69ddf
commit
5624dd6d39
18 changed files with 377 additions and 300 deletions
|
@ -151,13 +151,14 @@ public:
|
|||
{
|
||||
m_in_display_list = true;
|
||||
|
||||
auto& system = Core::System::GetInstance();
|
||||
|
||||
if constexpr (is_preprocess)
|
||||
{
|
||||
auto& system = Core::System::GetInstance();
|
||||
auto& memory = system.GetMemory();
|
||||
const u8* const start_address = memory.GetPointer(address);
|
||||
|
||||
Fifo::PushFifoAuxBuffer(start_address, size);
|
||||
system.GetFifo().PushFifoAuxBuffer(start_address, size);
|
||||
|
||||
if (start_address != nullptr)
|
||||
{
|
||||
|
@ -168,13 +169,13 @@ public:
|
|||
{
|
||||
const u8* start_address;
|
||||
|
||||
if (Fifo::UseDeterministicGPUThread())
|
||||
auto& fifo = system.GetFifo();
|
||||
if (fifo.UseDeterministicGPUThread())
|
||||
{
|
||||
start_address = static_cast<u8*>(Fifo::PopFifoAuxBuffer(size));
|
||||
start_address = static_cast<u8*>(fifo.PopFifoAuxBuffer(size));
|
||||
}
|
||||
else
|
||||
{
|
||||
auto& system = Core::System::GetInstance();
|
||||
auto& memory = system.GetMemory();
|
||||
start_address = memory.GetPointer(address);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue