diff --git a/src/video_core/dma_pusher.h b/src/video_core/dma_pusher.h index e42b0152bc..f850513603 100644 --- a/src/video_core/dma_pusher.h +++ b/src/video_core/dma_pusher.h @@ -178,7 +178,7 @@ private: const bool ib_enable{true}; ///< IB mode enabled std::array subchannels{}; - std::array subchannel_type{}; + std::array subchannel_type; GPU& gpu; Core::System& system; diff --git a/src/video_core/engines/engine_interface.h b/src/video_core/engines/engine_interface.h index 5e3b6926eb..e271ecab59 100644 --- a/src/video_core/engines/engine_interface.h +++ b/src/video_core/engines/engine_interface.h @@ -15,7 +15,6 @@ namespace Tegra::Engines { enum class EngineTypes : u32 { - Invalid = 0, KeplerCompute, Maxwell3D, Fermi2D, diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 1dc7e16903..2f42f9a2ab 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -254,10 +254,7 @@ void Maxwell3D::ProcessDirtyRegisters(u32 method, u32 argument) { } regs.reg_array[method] = argument; - const auto& table0 = dirty.tables[0]; - const auto& table1 = dirty.tables[1]; - const u8 flag0 = table0[method]; - const u8 flag1 = table1[method]; + const auto [flag0, flag1] = VideoCommon::Dirty::GetDirtyFlagsForMethod(method); dirty.flags[flag0] = true; if (flag1 != flag0) { dirty.flags[flag1] = true;