diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2020-06-03 08:33:38 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2020-06-03 08:33:38 +0200 |
commit | 411f5527d41ba5c4f09b914b4fb4df0c6493f744 (patch) | |
tree | de34bb541a8d2fa4a3ff411dccb2aef8a5a24574 /src/video_core/engines | |
parent | Pass by reference instead of copying parameters (diff) | |
download | yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.gz yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.bz2 yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.lz yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.xz yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.tar.zst yuzu-411f5527d41ba5c4f09b914b4fb4df0c6493f744.zip |
Diffstat (limited to 'src/video_core/engines')
-rw-r--r-- | src/video_core/engines/maxwell_3d.cpp | 2 | ||||
-rw-r--r-- | src/video_core/engines/maxwell_3d.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp index 0c0a7c1ed..14ad40250 100644 --- a/src/video_core/engines/maxwell_3d.cpp +++ b/src/video_core/engines/maxwell_3d.cpp @@ -115,7 +115,7 @@ void Maxwell3D::InitializeRegisterDefaults() { mme_inline[MAXWELL3D_REG_INDEX(index_array.count)] = true; } -void Maxwell3D::CallMacroMethod(u32 method, std::vector<u32>& parameters) { +void Maxwell3D::CallMacroMethod(u32 method, const std::vector<u32>& parameters) { // Reset the current macro. executing_macro = 0; diff --git a/src/video_core/engines/maxwell_3d.h b/src/video_core/engines/maxwell_3d.h index 651f37b4d..b827b112f 100644 --- a/src/video_core/engines/maxwell_3d.h +++ b/src/video_core/engines/maxwell_3d.h @@ -1466,7 +1466,6 @@ private: /// Interpreter for the macro codes uploaded to the GPU. std::unique_ptr<MacroEngine> macro_engine; - // MacroInterpreter macro_interpreter; static constexpr u32 null_cb_data = 0xFFFFFFFF; struct { @@ -1495,7 +1494,7 @@ private: * @param num_parameters Number of arguments * @param parameters Arguments to the method call */ - void CallMacroMethod(u32 method, std::vector<u32>& parameters); + void CallMacroMethod(u32 method, const std::vector<u32>& parameters); /// Handles writes to the macro uploading register. void ProcessMacroUpload(u32 data); |