diff options
| author | 2016-12-10 07:51:50 -0500 | |
|---|---|---|
| committer | 2016-12-11 00:07:27 +0000 | |
| commit | 963aedd8ccc207d5b65b97bd46b930771f2bda6e (patch) | |
| tree | ab238398e6f8a37e4cd105d19dcec54f82ec1bb2 /src/core/hw | |
| parent | configure_input: Modernize and cleanup input configuration tab (diff) | |
| download | yuzu-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.cpp | 10 | ||||
| -rw-r--r-- | src/core/hw/y2r.cpp | 2 | ||||
| -rw-r--r-- | src/core/hw/y2r.h | 9 |
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 @@ | |||
| 18 | namespace HW { | 18 | namespace HW { |
| 19 | namespace Y2R { | 19 | namespace Y2R { |
| 20 | 20 | ||
| 21 | using namespace Y2R_U; | 21 | using namespace Service::Y2R; |
| 22 | 22 | ||
| 23 | static const size_t MAX_TILES = 1024 / 8; | 23 | static const size_t MAX_TILES = 1024 / 8; |
| 24 | static const size_t TILE_SIZE = 8 * 8; | 24 | static 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 | ||
| 5 | namespace Y2R_U { | 5 | #pragma once |
| 6 | |||
| 7 | namespace Service { | ||
| 8 | namespace Y2R { | ||
| 6 | struct ConversionConfiguration; | 9 | struct ConversionConfiguration; |
| 7 | } | 10 | } |
| 11 | } | ||
| 8 | 12 | ||
| 9 | namespace HW { | 13 | namespace HW { |
| 10 | namespace Y2R { | 14 | namespace Y2R { |
| 11 | 15 | void PerformConversion(Service::Y2R::ConversionConfiguration& cvt); | |
| 12 | void PerformConversion(Y2R_U::ConversionConfiguration& cvt); | ||
| 13 | } | 16 | } |
| 14 | } | 17 | } |