GPU: Added boilerplate code for the Fermi2D engine

This commit is contained in:
Subv
2018-04-23 20:12:40 -05:00
parent c16cfbbc6c
commit b1109931b9
3 changed files with 34 additions and 3 deletions

View File

@ -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