summaryrefslogtreecommitdiffstats
path: root/src/video_core/command_processor.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-04-24 03:01:29 +0200
committerSubv <subv2112@gmail.com>2018-04-25 18:55:27 +0200
commita994446b6ec776c9383e8b13c45eeb461405adff (patch)
tree1810023a79e3f511601d60051e15df2f869c01c3 /src/video_core/command_processor.cpp
parentGPU: Corrected the upper bound of the PFIFO method ids in the command processor. (diff)
downloadyuzu-a994446b6ec776c9383e8b13c45eeb461405adff.tar
yuzu-a994446b6ec776c9383e8b13c45eeb461405adff.tar.gz
yuzu-a994446b6ec776c9383e8b13c45eeb461405adff.tar.bz2
yuzu-a994446b6ec776c9383e8b13c45eeb461405adff.tar.lz
yuzu-a994446b6ec776c9383e8b13c45eeb461405adff.tar.xz
yuzu-a994446b6ec776c9383e8b13c45eeb461405adff.tar.zst
yuzu-a994446b6ec776c9383e8b13c45eeb461405adff.zip
Diffstat (limited to 'src/video_core/command_processor.cpp')
-rw-r--r--src/video_core/command_processor.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index 26792a2bf..2eaece298 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -24,9 +24,6 @@ namespace Tegra {
enum class BufferMethods {
BindObject = 0,
- SetGraphMacroCode = 0x45,
- SetGraphMacroCodeArg = 0x46,
- SetGraphMacroEntry = 0x47,
CountBufferMethods = 0x40,
};
@@ -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);