From 1ec8d2123d3cca013178827e059641f8989b5af4 Mon Sep 17 00:00:00 2001 From: Subv Date: Wed, 28 Mar 2018 15:14:47 -0500 Subject: GPU: Implemented a gpu macro interpreter. The Ryujinx macro interpreter and envydis were used as reference. Macros are programs that are uploaded by the games during boot and can later be called by writing to their method id in a GPU command buffer. --- src/video_core/engines/maxwell_3d.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/video_core/engines/maxwell_3d.cpp') diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 5359d21a2..85255d0a5 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -386,5 +386,10 @@ std::vector Maxwell3D::GetStageTextures(Regs::ShaderSt return textures; } +u32 Maxwell3D::GetRegisterValue(u32 method) const { + ASSERT_MSG(method < Regs::NUM_REGS, "Invalid Maxwell3D register"); + return regs.reg_array[method]; +} + } // namespace Engines } // namespace Tegra -- cgit v1.2.3