mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-07 00:19:08 +01:00
video_core/macro: Remove unused parameter from Execute()
Simplifies the function interface.
This commit is contained in:
parent
74f80299b0
commit
a05d9405b9
3 changed files with 3 additions and 4 deletions
|
@ -240,7 +240,7 @@ void Maxwell3D::CallMacroMethod(u32 method, const std::vector<u32>& parameters)
|
||||||
((method - MacroRegistersStart) >> 1) % static_cast<u32>(macro_positions.size());
|
((method - MacroRegistersStart) >> 1) % static_cast<u32>(macro_positions.size());
|
||||||
|
|
||||||
// Execute the current macro.
|
// Execute the current macro.
|
||||||
macro_engine->Execute(*this, macro_positions[entry], parameters);
|
macro_engine->Execute(macro_positions[entry], parameters);
|
||||||
if (mme_draw.current_mode != MMEDrawMode::Undefined) {
|
if (mme_draw.current_mode != MMEDrawMode::Undefined) {
|
||||||
FlushMMEInlineDraw();
|
FlushMMEInlineDraw();
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,7 @@ void MacroEngine::AddCode(u32 method, u32 data) {
|
||||||
uploaded_macro_code[method].push_back(data);
|
uploaded_macro_code[method].push_back(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MacroEngine::Execute(Engines::Maxwell3D& maxwell3d, u32 method,
|
void MacroEngine::Execute(u32 method, const std::vector<u32>& parameters) {
|
||||||
const std::vector<u32>& parameters) {
|
|
||||||
auto compiled_macro = macro_cache.find(method);
|
auto compiled_macro = macro_cache.find(method);
|
||||||
if (compiled_macro != macro_cache.end()) {
|
if (compiled_macro != macro_cache.end()) {
|
||||||
const auto& cache_info = compiled_macro->second;
|
const auto& cache_info = compiled_macro->second;
|
||||||
|
|
|
@ -119,7 +119,7 @@ public:
|
||||||
void AddCode(u32 method, u32 data);
|
void AddCode(u32 method, u32 data);
|
||||||
|
|
||||||
// Compiles the macro if its not in the cache, and executes the compiled macro
|
// Compiles the macro if its not in the cache, and executes the compiled macro
|
||||||
void Execute(Engines::Maxwell3D& maxwell3d, u32 method, const std::vector<u32>& parameters);
|
void Execute(u32 method, const std::vector<u32>& parameters);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual std::unique_ptr<CachedMacro> Compile(const std::vector<u32>& code) = 0;
|
virtual std::unique_ptr<CachedMacro> Compile(const std::vector<u32>& code) = 0;
|
||||||
|
|
Loading…
Reference in a new issue