diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-26 02:40:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-26 02:40:17 +0200 |
commit | 42d43ea741886b9592fd7dfd57c33228afacf44c (patch) | |
tree | abfeb405b9c710816ad9ea8e06ea14854c0eb4a9 /src/video_core/command_processor.cpp | |
parent | Merge pull request #395 from lioncash/file-sys (diff) | |
parent | GPU: Partially implemented the Fermi2D surface copy operation. (diff) | |
download | yuzu-42d43ea741886b9592fd7dfd57c33228afacf44c.tar yuzu-42d43ea741886b9592fd7dfd57c33228afacf44c.tar.gz yuzu-42d43ea741886b9592fd7dfd57c33228afacf44c.tar.bz2 yuzu-42d43ea741886b9592fd7dfd57c33228afacf44c.tar.lz yuzu-42d43ea741886b9592fd7dfd57c33228afacf44c.tar.xz yuzu-42d43ea741886b9592fd7dfd57c33228afacf44c.tar.zst yuzu-42d43ea741886b9592fd7dfd57c33228afacf44c.zip |
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r-- | src/video_core/command_processor.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index f6a88f031..2eaece298 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp @@ -24,10 +24,7 @@ namespace Tegra { enum class BufferMethods { BindObject = 0, - SetGraphMacroCode = 0x45, - SetGraphMacroCodeArg = 0x46, - SetGraphMacroEntry = 0x47, - CountBufferMethods = 0x100, + CountBufferMethods = 0x40, }; void GPU::WriteReg(u32 method, u32 subchannel, u32 value, u32 remaining_params) { @@ -36,28 +33,6 @@ void GPU::WriteReg(u32 method, u32 subchannel, u32 value, u32 remaining_params) "{:08X} remaining params {}", method, subchannel, value, remaining_params); - if (method == static_cast<u32>(BufferMethods::SetGraphMacroEntry)) { - // Prepare to upload a new macro, reset the upload counter. - NGLOG_DEBUG(HW_GPU, "Uploading GPU macro {:08X}", value); - current_macro_entry = value; - current_macro_code.clear(); - return; - } - - if (method == static_cast<u32>(BufferMethods::SetGraphMacroCodeArg)) { - // Append a new code word to the current macro. - current_macro_code.push_back(value); - - // There are no more params remaining, submit the code to the 3D engine. - if (remaining_params == 0) { - maxwell_3d->SubmitMacroCode(current_macro_entry, std::move(current_macro_code)); - current_macro_entry = InvalidGraphMacroEntry; - current_macro_code.clear(); - } - - return; - } - if (method == static_cast<u32>(BufferMethods::BindObject)) { // Bind the current subchannel to the desired engine id. NGLOG_DEBUG(HW_GPU, "Binding subchannel {} to engine {}", subchannel, value); |