diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-10-14 02:17:09 +0200 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-11-23 05:52:21 +0100 |
| commit | 0a6fdb9c133666c7c038a4933e24ee6e4346100f (patch) | |
| tree | 08f9970fc1376cd87db7498895428408a16d367d /Source/Core/VideoCommon/PixelEngine.cpp | |
| parent | 0ef6d30a0dde197ccb2736dd46191e7f867f3502 (diff) | |
HW: Pass System to MMIO handlers.
Diffstat (limited to 'Source/Core/VideoCommon/PixelEngine.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelEngine.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/PixelEngine.cpp b/Source/Core/VideoCommon/PixelEngine.cpp index c110ffa284..af8a7a01c2 100644 --- a/Source/Core/VideoCommon/PixelEngine.cpp +++ b/Source/Core/VideoCommon/PixelEngine.cpp @@ -242,11 +242,11 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base) }; for (auto& pq_reg : pq_regs) { - mmio->Register(base | pq_reg.addr, MMIO::ComplexRead<u16>([pq_reg](u32) { + mmio->Register(base | pq_reg.addr, MMIO::ComplexRead<u16>([pq_reg](Core::System&, u32) { return g_video_backend->Video_GetQueryResult(pq_reg.pqtype) & 0xFFFF; }), MMIO::InvalidWrite<u16>()); - mmio->Register(base | (pq_reg.addr + 2), MMIO::ComplexRead<u16>([pq_reg](u32) { + mmio->Register(base | (pq_reg.addr + 2), MMIO::ComplexRead<u16>([pq_reg](Core::System&, u32) { return g_video_backend->Video_GetQueryResult(pq_reg.pqtype) >> 16; }), MMIO::InvalidWrite<u16>()); @@ -254,7 +254,7 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base) // Control register mmio->Register(base | PE_CTRL_REGISTER, MMIO::DirectRead<u16>(&m_Control.hex), - MMIO::ComplexWrite<u16>([](u32, u16 val) { + MMIO::ComplexWrite<u16>([](Core::System&, u32, u16 val) { UPECtrlReg tmpCtrl{.hex = val}; if (tmpCtrl.pe_token) @@ -278,7 +278,7 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base) // BBOX registers, readonly and need to update a flag. for (int i = 0; i < 4; ++i) { - mmio->Register(base | (PE_BBOX_LEFT + 2 * i), MMIO::ComplexRead<u16>([i](u32) { + mmio->Register(base | (PE_BBOX_LEFT + 2 * i), MMIO::ComplexRead<u16>([i](Core::System&, u32) { g_renderer->BBoxDisable(); return g_video_backend->Video_GetBoundingBox(i); }), |
