diff options
author | Subv <subv2112@gmail.com> | 2018-04-24 03:12:40 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-04-25 18:55:29 +0200 |
commit | b1109931b9a92ce89635cb7c0c0c1c0c7e6866ed (patch) | |
tree | 8dc60c3b4fedc1300c0a66079df11197b4e366fa /src/video_core/engines/fermi_2d.cpp | |
parent | GPU: Reduce the number of registers of Maxwell3D to 0xE00. (diff) | |
download | yuzu-b1109931b9a92ce89635cb7c0c0c1c0c7e6866ed.tar yuzu-b1109931b9a92ce89635cb7c0c0c1c0c7e6866ed.tar.gz yuzu-b1109931b9a92ce89635cb7c0c0c1c0c7e6866ed.tar.bz2 yuzu-b1109931b9a92ce89635cb7c0c0c1c0c7e6866ed.tar.lz yuzu-b1109931b9a92ce89635cb7c0c0c1c0c7e6866ed.tar.xz yuzu-b1109931b9a92ce89635cb7c0c0c1c0c7e6866ed.tar.zst yuzu-b1109931b9a92ce89635cb7c0c0c1c0c7e6866ed.zip |
Diffstat (limited to 'src/video_core/engines/fermi_2d.cpp')
-rw-r--r-- | src/video_core/engines/fermi_2d.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/engines/fermi_2d.cpp b/src/video_core/engines/fermi_2d.cpp index 7aab163dc..87634da21 100644 --- a/src/video_core/engines/fermi_2d.cpp +++ b/src/video_core/engines/fermi_2d.cpp @@ -7,7 +7,12 @@ namespace Tegra { namespace Engines { -void Fermi2D::WriteReg(u32 method, u32 value) {} +Fermi2D::Fermi2D(MemoryManager& memory_manager) : memory_manager(memory_manager) {} + +void Fermi2D::WriteReg(u32 method, u32 value) { + ASSERT_MSG(method < Regs::NUM_REGS, + "Invalid Fermi2D register, increase the size of the Regs structure"); +} } // namespace Engines } // namespace Tegra |