From b25b94400e480c598ddf57f7d8cddd96fa234693 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 12 Oct 2019 09:50:55 -0400 Subject: 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. --- src/video_core/gpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core') diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 76cfe8107..fbb9105d6 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -326,7 +326,7 @@ void GPU::ProcessSemaphoreTriggerMethod() { block.sequence = regs.semaphore_sequence; // TODO(Kmather73): Generate a real GPU timestamp and write it here instead of // CoreTiming - block.timestamp = Core::System::GetInstance().CoreTiming().GetTicks(); + block.timestamp = system.CoreTiming().GetTicks(); memory_manager->WriteBlock(regs.semaphore_address.SemaphoreAddress(), &block, sizeof(block)); } else { -- cgit v1.2.3