summaryrefslogtreecommitdiff
path: root/src/core/hw
diff options
context:
space:
mode:
authorGravatar Lioncash2016-12-10 07:51:50 -0500
committerGravatar linkmauve2016-12-11 00:07:27 +0000
commit963aedd8ccc207d5b65b97bd46b930771f2bda6e (patch)
treeab238398e6f8a37e4cd105d19dcec54f82ec1bb2 /src/core/hw
parentconfigure_input: Modernize and cleanup input configuration tab (diff)
downloadyuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.gz
yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.tar.xz
yuzu-963aedd8ccc207d5b65b97bd46b930771f2bda6e.zip
Add all services to the Service namespace
Previously there was a split where some of the services were in the Service namespace and others were not.
Diffstat (limited to 'src/core/hw')
-rw-r--r--src/core/hw/gpu.cpp10
-rw-r--r--src/core/hw/y2r.cpp2
-rw-r--r--src/core/hw/y2r.h9
3 files changed, 12 insertions, 9 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index 1503b45da..1a1ee90b2 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -430,9 +430,9 @@ inline void Write(u32 addr, const T data) {
430 // TODO: hwtest this 430 // TODO: hwtest this
431 if (config.GetStartAddress() != 0) { 431 if (config.GetStartAddress() != 0) {
432 if (!is_second_filler) { 432 if (!is_second_filler) {
433 GSP_GPU::SignalInterrupt(GSP_GPU::InterruptId::PSC0); 433 Service::GSP::SignalInterrupt(Service::GSP::InterruptId::PSC0);
434 } else { 434 } else {
435 GSP_GPU::SignalInterrupt(GSP_GPU::InterruptId::PSC1); 435 Service::GSP::SignalInterrupt(Service::GSP::InterruptId::PSC1);
436 } 436 }
437 } 437 }
438 438
@@ -473,7 +473,7 @@ inline void Write(u32 addr, const T data) {
473 } 473 }
474 474
475 g_regs.display_transfer_config.trigger = 0; 475 g_regs.display_transfer_config.trigger = 0;
476 GSP_GPU::SignalInterrupt(GSP_GPU::InterruptId::PPF); 476 Service::GSP::SignalInterrupt(Service::GSP::InterruptId::PPF);
477 } 477 }
478 break; 478 break;
479 } 479 }
@@ -548,8 +548,8 @@ static void VBlankCallback(u64 userdata, int cycles_late) {
548 // screen, or if both use the same interrupts and these two instead determine the 548 // screen, or if both use the same interrupts and these two instead determine the
549 // beginning and end of the VBlank period. If needed, split the interrupt firing into 549 // beginning and end of the VBlank period. If needed, split the interrupt firing into
550 // two different intervals. 550 // two different intervals.
551 GSP_GPU::SignalInterrupt(GSP_GPU::InterruptId::PDC0); 551 Service::GSP::SignalInterrupt(Service::GSP::InterruptId::PDC0);
552 GSP_GPU::SignalInterrupt(GSP_GPU::InterruptId::PDC1); 552 Service::GSP::SignalInterrupt(Service::GSP::InterruptId::PDC1);
553 553
554 // Check for user input updates 554 // Check for user input updates
555 Service::HID::Update(); 555 Service::HID::Update();
diff --git a/src/core/hw/y2r.cpp b/src/core/hw/y2r.cpp
index 6a6c707a2..e697f84b3 100644
--- a/src/core/hw/y2r.cpp
+++ b/src/core/hw/y2r.cpp
@@ -18,7 +18,7 @@
18namespace HW { 18namespace HW {
19namespace Y2R { 19namespace Y2R {
20 20
21using namespace Y2R_U; 21using namespace Service::Y2R;
22 22
23static const size_t MAX_TILES = 1024 / 8; 23static const size_t MAX_TILES = 1024 / 8;
24static const size_t TILE_SIZE = 8 * 8; 24static const size_t TILE_SIZE = 8 * 8;
diff --git a/src/core/hw/y2r.h b/src/core/hw/y2r.h
index 6b6e71bec..25fcd781c 100644
--- a/src/core/hw/y2r.h
+++ b/src/core/hw/y2r.h
@@ -2,13 +2,16 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5namespace Y2R_U { 5#pragma once
6
7namespace Service {
8namespace Y2R {
6struct ConversionConfiguration; 9struct ConversionConfiguration;
7} 10}
11}
8 12
9namespace HW { 13namespace HW {
10namespace Y2R { 14namespace Y2R {
11 15void PerformConversion(Service::Y2R::ConversionConfiguration& cvt);
12void PerformConversion(Y2R_U::ConversionConfiguration& cvt);
13} 16}
14} 17}