mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 13:42:49 +00:00
video_core/gpu: Remove use of the global system accessor
We can just make use of the reference member variable instead of accessing the global system instance.
This commit is contained in:
parent
cc1d7048b5
commit
b25b94400e
|
@ -326,7 +326,7 @@ void GPU::ProcessSemaphoreTriggerMethod() {
|
||||||
block.sequence = regs.semaphore_sequence;
|
block.sequence = regs.semaphore_sequence;
|
||||||
// TODO(Kmather73): Generate a real GPU timestamp and write it here instead of
|
// TODO(Kmather73): Generate a real GPU timestamp and write it here instead of
|
||||||
// CoreTiming
|
// CoreTiming
|
||||||
block.timestamp = Core::System::GetInstance().CoreTiming().GetTicks();
|
block.timestamp = system.CoreTiming().GetTicks();
|
||||||
memory_manager->WriteBlock(regs.semaphore_address.SemaphoreAddress(), &block,
|
memory_manager->WriteBlock(regs.semaphore_address.SemaphoreAddress(), &block,
|
||||||
sizeof(block));
|
sizeof(block));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue