diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/log.h | 2 | ||||
| -rw-r--r-- | src/common/log_manager.cpp | 2 | ||||
| -rw-r--r-- | src/core/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/core/core.vcxproj | 6 | ||||
| -rw-r--r-- | src/core/core.vcxproj.filters | 6 | ||||
| -rw-r--r-- | src/core/hle/service/gsp.cpp | 16 | ||||
| -rw-r--r-- | src/core/hw/gpu.cpp (renamed from src/core/hw/lcd.cpp) | 18 | ||||
| -rw-r--r-- | src/core/hw/gpu.h (renamed from src/core/hw/lcd.h) | 2 | ||||
| -rw-r--r-- | src/core/hw/hw.cpp | 16 | ||||
| -rw-r--r-- | src/core/hw/ndma.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 6 |
11 files changed, 41 insertions, 41 deletions
diff --git a/src/common/log.h b/src/common/log.h index 8b39b03a1..d0da68aad 100644 --- a/src/common/log.h +++ b/src/common/log.h | |||
| @@ -60,7 +60,7 @@ enum LOG_TYPE { | |||
| 60 | NDMA, | 60 | NDMA, |
| 61 | HLE, | 61 | HLE, |
| 62 | RENDER, | 62 | RENDER, |
| 63 | LCD, | 63 | GPU, |
| 64 | HW, | 64 | HW, |
| 65 | TIME, | 65 | TIME, |
| 66 | NETPLAY, | 66 | NETPLAY, |
diff --git a/src/common/log_manager.cpp b/src/common/log_manager.cpp index 146472888..b4a761c75 100644 --- a/src/common/log_manager.cpp +++ b/src/common/log_manager.cpp | |||
| @@ -65,7 +65,7 @@ LogManager::LogManager() | |||
| 65 | m_Log[LogTypes::WII_IPC_ES] = new LogContainer("WII_IPC_ES", "WII IPC ES"); | 65 | m_Log[LogTypes::WII_IPC_ES] = new LogContainer("WII_IPC_ES", "WII IPC ES"); |
| 66 | m_Log[LogTypes::WII_IPC_FILEIO] = new LogContainer("WII_IPC_FILEIO", "WII IPC FILEIO"); | 66 | m_Log[LogTypes::WII_IPC_FILEIO] = new LogContainer("WII_IPC_FILEIO", "WII IPC FILEIO"); |
| 67 | m_Log[LogTypes::RENDER] = new LogContainer("RENDER", "RENDER"); | 67 | m_Log[LogTypes::RENDER] = new LogContainer("RENDER", "RENDER"); |
| 68 | m_Log[LogTypes::LCD] = new LogContainer("LCD", "LCD"); | 68 | m_Log[LogTypes::GPU] = new LogContainer("GPU", "GPU"); |
| 69 | m_Log[LogTypes::SVC] = new LogContainer("SVC", "Supervisor Call HLE"); | 69 | m_Log[LogTypes::SVC] = new LogContainer("SVC", "Supervisor Call HLE"); |
| 70 | m_Log[LogTypes::NDMA] = new LogContainer("NDMA", "NDMA"); | 70 | m_Log[LogTypes::NDMA] = new LogContainer("NDMA", "NDMA"); |
| 71 | m_Log[LogTypes::HLE] = new LogContainer("HLE", "High Level Emulation"); | 71 | m_Log[LogTypes::HLE] = new LogContainer("HLE", "High Level Emulation"); |
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 4086b415b..1c1a2eeb3 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -42,8 +42,8 @@ set(SRCS core.cpp | |||
| 42 | hle/service/hid.cpp | 42 | hle/service/hid.cpp |
| 43 | hle/service/service.cpp | 43 | hle/service/service.cpp |
| 44 | hle/service/srv.cpp | 44 | hle/service/srv.cpp |
| 45 | hw/gpu.cpp | ||
| 45 | hw/hw.cpp | 46 | hw/hw.cpp |
| 46 | hw/lcd.cpp | ||
| 47 | hw/ndma.cpp) | 47 | hw/ndma.cpp) |
| 48 | 48 | ||
| 49 | set(HEADERS core.h | 49 | set(HEADERS core.h |
| @@ -88,8 +88,8 @@ set(HEADERS core.h | |||
| 88 | hle/service/hid.h | 88 | hle/service/hid.h |
| 89 | hle/service/service.h | 89 | hle/service/service.h |
| 90 | hle/service/srv.h | 90 | hle/service/srv.h |
| 91 | hw/gpu.h | ||
| 91 | hw/hw.h | 92 | hw/hw.h |
| 92 | hw/lcd.h | ||
| 93 | hw/ndma.h) | 93 | hw/ndma.h) |
| 94 | 94 | ||
| 95 | add_library(core STATIC ${SRCS} ${HEADERS}) | 95 | add_library(core STATIC ${SRCS} ${HEADERS}) |
diff --git a/src/core/core.vcxproj b/src/core/core.vcxproj index f271d336e..8a3ad83ea 100644 --- a/src/core/core.vcxproj +++ b/src/core/core.vcxproj | |||
| @@ -177,8 +177,8 @@ | |||
| 177 | <ClCompile Include="hle\service\service.cpp" /> | 177 | <ClCompile Include="hle\service\service.cpp" /> |
| 178 | <ClCompile Include="hle\service\srv.cpp" /> | 178 | <ClCompile Include="hle\service\srv.cpp" /> |
| 179 | <ClCompile Include="hle\svc.cpp" /> | 179 | <ClCompile Include="hle\svc.cpp" /> |
| 180 | <ClCompile Include="hw\gpu.cpp" /> | ||
| 180 | <ClCompile Include="hw\hw.cpp" /> | 181 | <ClCompile Include="hw\hw.cpp" /> |
| 181 | <ClCompile Include="hw\lcd.cpp" /> | ||
| 182 | <ClCompile Include="hw\ndma.cpp" /> | 182 | <ClCompile Include="hw\ndma.cpp" /> |
| 183 | <ClCompile Include="loader.cpp" /> | 183 | <ClCompile Include="loader.cpp" /> |
| 184 | <ClCompile Include="mem_map.cpp" /> | 184 | <ClCompile Include="mem_map.cpp" /> |
| @@ -226,8 +226,8 @@ | |||
| 226 | <ClInclude Include="hle\service\service.h" /> | 226 | <ClInclude Include="hle\service\service.h" /> |
| 227 | <ClInclude Include="hle\service\srv.h" /> | 227 | <ClInclude Include="hle\service\srv.h" /> |
| 228 | <ClInclude Include="hle\svc.h" /> | 228 | <ClInclude Include="hle\svc.h" /> |
| 229 | <ClInclude Include="hw\gpu.h" /> | ||
| 229 | <ClInclude Include="hw\hw.h" /> | 230 | <ClInclude Include="hw\hw.h" /> |
| 230 | <ClInclude Include="hw\lcd.h" /> | ||
| 231 | <ClInclude Include="hw\ndma.h" /> | 231 | <ClInclude Include="hw\ndma.h" /> |
| 232 | <ClInclude Include="loader.h" /> | 232 | <ClInclude Include="loader.h" /> |
| 233 | <ClInclude Include="mem_map.h" /> | 233 | <ClInclude Include="mem_map.h" /> |
| @@ -239,4 +239,4 @@ | |||
| 239 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 239 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 240 | <ImportGroup Label="ExtensionTargets"> | 240 | <ImportGroup Label="ExtensionTargets"> |
| 241 | </ImportGroup> | 241 | </ImportGroup> |
| 242 | </Project> \ No newline at end of file | 242 | </Project> |
diff --git a/src/core/core.vcxproj.filters b/src/core/core.vcxproj.filters index b6c1d5b93..f7b342f98 100644 --- a/src/core/core.vcxproj.filters +++ b/src/core/core.vcxproj.filters | |||
| @@ -102,7 +102,7 @@ | |||
| 102 | <ClCompile Include="hw\ndma.cpp"> | 102 | <ClCompile Include="hw\ndma.cpp"> |
| 103 | <Filter>hw</Filter> | 103 | <Filter>hw</Filter> |
| 104 | </ClCompile> | 104 | </ClCompile> |
| 105 | <ClCompile Include="hw\lcd.cpp"> | 105 | <ClCompile Include="hw\gpu.cpp"> |
| 106 | <Filter>hw</Filter> | 106 | <Filter>hw</Filter> |
| 107 | </ClCompile> | 107 | </ClCompile> |
| 108 | <ClCompile Include="arm\disassembler\load_symbol_map.cpp"> | 108 | <ClCompile Include="arm\disassembler\load_symbol_map.cpp"> |
| @@ -244,7 +244,7 @@ | |||
| 244 | <ClInclude Include="hw\ndma.h"> | 244 | <ClInclude Include="hw\ndma.h"> |
| 245 | <Filter>hw</Filter> | 245 | <Filter>hw</Filter> |
| 246 | </ClInclude> | 246 | </ClInclude> |
| 247 | <ClInclude Include="hw\lcd.h"> | 247 | <ClInclude Include="hw\gpu.h"> |
| 248 | <Filter>hw</Filter> | 248 | <Filter>hw</Filter> |
| 249 | </ClInclude> | 249 | </ClInclude> |
| 250 | <ClInclude Include="arm\disassembler\load_symbol_map.h"> | 250 | <ClInclude Include="arm\disassembler\load_symbol_map.h"> |
| @@ -299,4 +299,4 @@ | |||
| 299 | <ItemGroup> | 299 | <ItemGroup> |
| 300 | <Text Include="CMakeLists.txt" /> | 300 | <Text Include="CMakeLists.txt" /> |
| 301 | </ItemGroup> | 301 | </ItemGroup> |
| 302 | </Project> \ No newline at end of file | 302 | </Project> |
diff --git a/src/core/hle/service/gsp.cpp b/src/core/hle/service/gsp.cpp index a42759053..d51e6c66d 100644 --- a/src/core/hle/service/gsp.cpp +++ b/src/core/hle/service/gsp.cpp | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | #include "core/hle/hle.h" | 10 | #include "core/hle/hle.h" |
| 11 | #include "core/hle/service/gsp.h" | 11 | #include "core/hle/service/gsp.h" |
| 12 | 12 | ||
| 13 | #include "core/hw/lcd.h" | 13 | #include "core/hw/gpu.h" |
| 14 | 14 | ||
| 15 | #include "video_core/gpu_debugger.h" | 15 | #include "video_core/gpu_debugger.h" |
| 16 | 16 | ||
| @@ -69,8 +69,8 @@ enum { | |||
| 69 | 69 | ||
| 70 | /// Read a GSP GPU hardware register | 70 | /// Read a GSP GPU hardware register |
| 71 | void ReadHWRegs(Service::Interface* self) { | 71 | void ReadHWRegs(Service::Interface* self) { |
| 72 | static const u32 framebuffer_1[] = {LCD::PADDR_VRAM_TOP_LEFT_FRAME1, LCD::PADDR_VRAM_TOP_RIGHT_FRAME1}; | 72 | static const u32 framebuffer_1[] = {GPU::PADDR_VRAM_TOP_LEFT_FRAME1, GPU::PADDR_VRAM_TOP_RIGHT_FRAME1}; |
| 73 | static const u32 framebuffer_2[] = {LCD::PADDR_VRAM_TOP_LEFT_FRAME2, LCD::PADDR_VRAM_TOP_RIGHT_FRAME2}; | 73 | static const u32 framebuffer_2[] = {GPU::PADDR_VRAM_TOP_LEFT_FRAME2, GPU::PADDR_VRAM_TOP_RIGHT_FRAME2}; |
| 74 | 74 | ||
| 75 | u32* cmd_buff = Service::GetCommandBuffer(); | 75 | u32* cmd_buff = Service::GetCommandBuffer(); |
| 76 | u32 reg_addr = cmd_buff[1]; | 76 | u32 reg_addr = cmd_buff[1]; |
| @@ -85,13 +85,13 @@ void ReadHWRegs(Service::Interface* self) { | |||
| 85 | 85 | ||
| 86 | // Top framebuffer 1 addresses | 86 | // Top framebuffer 1 addresses |
| 87 | case REG_FRAMEBUFFER_1: | 87 | case REG_FRAMEBUFFER_1: |
| 88 | LCD::SetFramebufferLocation(LCD::FRAMEBUFFER_LOCATION_VRAM); | 88 | GPU::SetFramebufferLocation(GPU::FRAMEBUFFER_LOCATION_VRAM); |
| 89 | memcpy(dst, framebuffer_1, size); | 89 | memcpy(dst, framebuffer_1, size); |
| 90 | break; | 90 | break; |
| 91 | 91 | ||
| 92 | // Top framebuffer 2 addresses | 92 | // Top framebuffer 2 addresses |
| 93 | case REG_FRAMEBUFFER_2: | 93 | case REG_FRAMEBUFFER_2: |
| 94 | LCD::SetFramebufferLocation(LCD::FRAMEBUFFER_LOCATION_VRAM); | 94 | GPU::SetFramebufferLocation(GPU::FRAMEBUFFER_LOCATION_VRAM); |
| 95 | memcpy(dst, framebuffer_2, size); | 95 | memcpy(dst, framebuffer_2, size); |
| 96 | break; | 96 | break; |
| 97 | 97 | ||
| @@ -123,9 +123,9 @@ void TriggerCmdReqQueue(Service::Interface* self) { | |||
| 123 | break; | 123 | break; |
| 124 | 124 | ||
| 125 | case GXCommandId::SET_COMMAND_LIST_LAST: | 125 | case GXCommandId::SET_COMMAND_LIST_LAST: |
| 126 | LCD::Write<u32>(LCD::CommandListAddress, cmd_buff[1] >> 3); | 126 | GPU::Write<u32>(GPU::CommandListAddress, cmd_buff[1] >> 3); |
| 127 | LCD::Write<u32>(LCD::CommandListSize, cmd_buff[2] >> 3); | 127 | GPU::Write<u32>(GPU::CommandListSize, cmd_buff[2] >> 3); |
| 128 | LCD::Write<u32>(LCD::ProcessCommandList, 1); // TODO: Not sure if we are supposed to always write this | 128 | GPU::Write<u32>(GPU::ProcessCommandList, 1); // TODO: Not sure if we are supposed to always write this |
| 129 | break; | 129 | break; |
| 130 | 130 | ||
| 131 | case GXCommandId::SET_MEMORY_FILL: | 131 | case GXCommandId::SET_MEMORY_FILL: |
diff --git a/src/core/hw/lcd.cpp b/src/core/hw/gpu.cpp index 61ee99c1f..632e1aaac 100644 --- a/src/core/hw/lcd.cpp +++ b/src/core/hw/gpu.cpp | |||
| @@ -8,12 +8,12 @@ | |||
| 8 | #include "core/core.h" | 8 | #include "core/core.h" |
| 9 | #include "core/mem_map.h" | 9 | #include "core/mem_map.h" |
| 10 | #include "core/hle/kernel/thread.h" | 10 | #include "core/hle/kernel/thread.h" |
| 11 | #include "core/hw/lcd.h" | 11 | #include "core/hw/gpu.h" |
| 12 | 12 | ||
| 13 | #include "video_core/video_core.h" | 13 | #include "video_core/video_core.h" |
| 14 | 14 | ||
| 15 | 15 | ||
| 16 | namespace LCD { | 16 | namespace GPU { |
| 17 | 17 | ||
| 18 | Registers g_regs; | 18 | Registers g_regs; |
| 19 | 19 | ||
| @@ -61,7 +61,7 @@ const FramebufferLocation GetFramebufferLocation() { | |||
| 61 | } else if ((g_regs.framebuffer_top_right_1 & ~Memory::FCRAM_MASK) == Memory::FCRAM_PADDR) { | 61 | } else if ((g_regs.framebuffer_top_right_1 & ~Memory::FCRAM_MASK) == Memory::FCRAM_PADDR) { |
| 62 | return FRAMEBUFFER_LOCATION_FCRAM; | 62 | return FRAMEBUFFER_LOCATION_FCRAM; |
| 63 | } else { | 63 | } else { |
| 64 | ERROR_LOG(LCD, "unknown framebuffer location!"); | 64 | ERROR_LOG(GPU, "unknown framebuffer location!"); |
| 65 | } | 65 | } |
| 66 | return FRAMEBUFFER_LOCATION_UNKNOWN; | 66 | return FRAMEBUFFER_LOCATION_UNKNOWN; |
| 67 | } | 67 | } |
| @@ -78,7 +78,7 @@ const u8* GetFramebufferPointer(const u32 address) { | |||
| 78 | case FRAMEBUFFER_LOCATION_VRAM: | 78 | case FRAMEBUFFER_LOCATION_VRAM: |
| 79 | return (const u8*)Memory::GetPointer(Memory::VirtualAddressFromPhysical_VRAM(address)); | 79 | return (const u8*)Memory::GetPointer(Memory::VirtualAddressFromPhysical_VRAM(address)); |
| 80 | default: | 80 | default: |
| 81 | ERROR_LOG(LCD, "unknown framebuffer location"); | 81 | ERROR_LOG(GPU, "unknown framebuffer location"); |
| 82 | } | 82 | } |
| 83 | return NULL; | 83 | return NULL; |
| 84 | } | 84 | } |
| @@ -123,7 +123,7 @@ inline void Read(T &var, const u32 addr) { | |||
| 123 | break; | 123 | break; |
| 124 | 124 | ||
| 125 | default: | 125 | default: |
| 126 | ERROR_LOG(LCD, "unknown Read%d @ 0x%08X", sizeof(var) * 8, addr); | 126 | ERROR_LOG(GPU, "unknown Read%d @ 0x%08X", sizeof(var) * 8, addr); |
| 127 | break; | 127 | break; |
| 128 | } | 128 | } |
| 129 | } | 129 | } |
| @@ -144,13 +144,13 @@ inline void Write(u32 addr, const T data) { | |||
| 144 | if (g_regs.command_processing_enabled & 1) | 144 | if (g_regs.command_processing_enabled & 1) |
| 145 | { | 145 | { |
| 146 | // u32* buffer = (u32*)Memory::GetPointer(g_regs.command_list_address << 3); | 146 | // u32* buffer = (u32*)Memory::GetPointer(g_regs.command_list_address << 3); |
| 147 | ERROR_LOG(LCD, "Beginning %x bytes of commands from address %x", g_regs.command_list_size, g_regs.command_list_address << 3); | 147 | ERROR_LOG(GPU, "Beginning %x bytes of commands from address %x", g_regs.command_list_size, g_regs.command_list_address << 3); |
| 148 | // TODO: Process command list! | 148 | // TODO: Process command list! |
| 149 | } | 149 | } |
| 150 | break; | 150 | break; |
| 151 | 151 | ||
| 152 | default: | 152 | default: |
| 153 | ERROR_LOG(LCD, "unknown Write%d 0x%08X @ 0x%08X", sizeof(data) * 8, data, addr); | 153 | ERROR_LOG(GPU, "unknown Write%d 0x%08X @ 0x%08X", sizeof(data) * 8, data, addr); |
| 154 | break; | 154 | break; |
| 155 | } | 155 | } |
| 156 | } | 156 | } |
| @@ -183,12 +183,12 @@ void Update() { | |||
| 183 | void Init() { | 183 | void Init() { |
| 184 | g_last_ticks = Core::g_app_core->GetTicks(); | 184 | g_last_ticks = Core::g_app_core->GetTicks(); |
| 185 | SetFramebufferLocation(FRAMEBUFFER_LOCATION_FCRAM); | 185 | SetFramebufferLocation(FRAMEBUFFER_LOCATION_FCRAM); |
| 186 | NOTICE_LOG(LCD, "initialized OK"); | 186 | NOTICE_LOG(GPU, "initialized OK"); |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | /// Shutdown hardware | 189 | /// Shutdown hardware |
| 190 | void Shutdown() { | 190 | void Shutdown() { |
| 191 | NOTICE_LOG(LCD, "shutdown OK"); | 191 | NOTICE_LOG(GPU, "shutdown OK"); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | } // namespace | 194 | } // namespace |
diff --git a/src/core/hw/lcd.h b/src/core/hw/gpu.h index 2ae852d7c..c81b1bb3f 100644 --- a/src/core/hw/lcd.h +++ b/src/core/hw/gpu.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | 8 | ||
| 9 | namespace LCD { | 9 | namespace GPU { |
| 10 | 10 | ||
| 11 | struct Registers { | 11 | struct Registers { |
| 12 | u32 framebuffer_top_left_1; | 12 | u32 framebuffer_top_left_1; |
diff --git a/src/core/hw/hw.cpp b/src/core/hw/hw.cpp index 85669ae7f..ed70486e6 100644 --- a/src/core/hw/hw.cpp +++ b/src/core/hw/hw.cpp | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #include "common/log.h" | 6 | #include "common/log.h" |
| 7 | 7 | ||
| 8 | #include "core/hw/hw.h" | 8 | #include "core/hw/hw.h" |
| 9 | #include "core/hw/lcd.h" | 9 | #include "core/hw/gpu.h" |
| 10 | #include "core/hw/ndma.h" | 10 | #include "core/hw/ndma.h" |
| 11 | 11 | ||
| 12 | namespace HW { | 12 | namespace HW { |
| @@ -34,7 +34,7 @@ enum { | |||
| 34 | VADDR_CDMA = 0xFFFDA000, // CoreLink DMA-330? Info | 34 | VADDR_CDMA = 0xFFFDA000, // CoreLink DMA-330? Info |
| 35 | VADDR_DSP_2 = 0x1ED03000, | 35 | VADDR_DSP_2 = 0x1ED03000, |
| 36 | VADDR_HASH_2 = 0x1EE01000, | 36 | VADDR_HASH_2 = 0x1EE01000, |
| 37 | VADDR_LCD = 0x1EF00000, | 37 | VADDR_GPU = 0x1EF00000, |
| 38 | }; | 38 | }; |
| 39 | 39 | ||
| 40 | template <typename T> | 40 | template <typename T> |
| @@ -46,8 +46,8 @@ inline void Read(T &var, const u32 addr) { | |||
| 46 | // NDMA::Read(var, addr); | 46 | // NDMA::Read(var, addr); |
| 47 | // break; | 47 | // break; |
| 48 | 48 | ||
| 49 | case VADDR_LCD: | 49 | case VADDR_GPU: |
| 50 | LCD::Read(var, addr); | 50 | GPU::Read(var, addr); |
| 51 | break; | 51 | break; |
| 52 | 52 | ||
| 53 | default: | 53 | default: |
| @@ -64,8 +64,8 @@ inline void Write(u32 addr, const T data) { | |||
| 64 | // NDMA::Write(addr, data); | 64 | // NDMA::Write(addr, data); |
| 65 | // break; | 65 | // break; |
| 66 | 66 | ||
| 67 | case VADDR_LCD: | 67 | case VADDR_GPU: |
| 68 | LCD::Write(addr, data); | 68 | GPU::Write(addr, data); |
| 69 | break; | 69 | break; |
| 70 | 70 | ||
| 71 | default: | 71 | default: |
| @@ -87,13 +87,13 @@ template void Write<u8>(u32 addr, const u8 data); | |||
| 87 | 87 | ||
| 88 | /// Update hardware | 88 | /// Update hardware |
| 89 | void Update() { | 89 | void Update() { |
| 90 | LCD::Update(); | 90 | GPU::Update(); |
| 91 | NDMA::Update(); | 91 | NDMA::Update(); |
| 92 | } | 92 | } |
| 93 | 93 | ||
| 94 | /// Initialize hardware | 94 | /// Initialize hardware |
| 95 | void Init() { | 95 | void Init() { |
| 96 | LCD::Init(); | 96 | GPU::Init(); |
| 97 | NDMA::Init(); | 97 | NDMA::Init(); |
| 98 | NOTICE_LOG(HW, "initialized OK"); | 98 | NOTICE_LOG(HW, "initialized OK"); |
| 99 | } | 99 | } |
diff --git a/src/core/hw/ndma.cpp b/src/core/hw/ndma.cpp index 52e459ebd..f6aa72d16 100644 --- a/src/core/hw/ndma.cpp +++ b/src/core/hw/ndma.cpp | |||
| @@ -37,12 +37,12 @@ void Update() { | |||
| 37 | 37 | ||
| 38 | /// Initialize hardware | 38 | /// Initialize hardware |
| 39 | void Init() { | 39 | void Init() { |
| 40 | NOTICE_LOG(LCD, "initialized OK"); | 40 | NOTICE_LOG(GPU, "initialized OK"); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | /// Shutdown hardware | 43 | /// Shutdown hardware |
| 44 | void Shutdown() { | 44 | void Shutdown() { |
| 45 | NOTICE_LOG(LCD, "shutdown OK"); | 45 | NOTICE_LOG(GPU, "shutdown OK"); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | } // namespace | 48 | } // namespace |
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index bb5eb34aa..70af47c59 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | // Licensed under GPLv2 | 2 | // Licensed under GPLv2 |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "core/hw/lcd.h" | 5 | #include "core/hw/gpu.h" |
| 6 | 6 | ||
| 7 | #include "video_core/video_core.h" | 7 | #include "video_core/video_core.h" |
| 8 | #include "video_core/renderer_opengl/renderer_opengl.h" | 8 | #include "video_core/renderer_opengl/renderer_opengl.h" |
| @@ -77,8 +77,8 @@ void RendererOpenGL::FlipFramebuffer(const u8* in, u8* out) { | |||
| 77 | */ | 77 | */ |
| 78 | void RendererOpenGL::RenderXFB(const common::Rect& src_rect, const common::Rect& dst_rect) { | 78 | void RendererOpenGL::RenderXFB(const common::Rect& src_rect, const common::Rect& dst_rect) { |
| 79 | 79 | ||
| 80 | FlipFramebuffer(LCD::GetFramebufferPointer(LCD::g_regs.framebuffer_top_left_1), m_xfb_top_flipped); | 80 | FlipFramebuffer(GPU::GetFramebufferPointer(GPU::g_regs.framebuffer_top_left_1), m_xfb_top_flipped); |
| 81 | FlipFramebuffer(LCD::GetFramebufferPointer(LCD::g_regs.framebuffer_sub_left_1), m_xfb_bottom_flipped); | 81 | FlipFramebuffer(GPU::GetFramebufferPointer(GPU::g_regs.framebuffer_sub_left_1), m_xfb_bottom_flipped); |
| 82 | 82 | ||
| 83 | // Blit the top framebuffer | 83 | // Blit the top framebuffer |
| 84 | // ------------------------ | 84 | // ------------------------ |