diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-01-04 20:56:52 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-01-04 20:56:52 +0100 |
commit | 3ecc03ec1b5f8c48aee4f2e1f1428908647a1cfc (patch) | |
tree | eff34f64b7e9d0b96bcddab5b7b3cb4f26a2704a /src/video_core/macro/macro.cpp | |
parent | Video_core: Address feedback (diff) | |
download | yuzu-3ecc03ec1b5f8c48aee4f2e1f1428908647a1cfc.tar yuzu-3ecc03ec1b5f8c48aee4f2e1f1428908647a1cfc.tar.gz yuzu-3ecc03ec1b5f8c48aee4f2e1f1428908647a1cfc.tar.bz2 yuzu-3ecc03ec1b5f8c48aee4f2e1f1428908647a1cfc.tar.lz yuzu-3ecc03ec1b5f8c48aee4f2e1f1428908647a1cfc.tar.xz yuzu-3ecc03ec1b5f8c48aee4f2e1f1428908647a1cfc.tar.zst yuzu-3ecc03ec1b5f8c48aee4f2e1f1428908647a1cfc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/macro/macro.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/macro/macro.cpp b/src/video_core/macro/macro.cpp index a96e8648c..82ad0477d 100644 --- a/src/video_core/macro/macro.cpp +++ b/src/video_core/macro/macro.cpp @@ -107,14 +107,15 @@ void MacroEngine::Execute(u32 method, const std::vector<u32>& parameters) { } } - if (auto hle_program = hle_macros->GetHLEProgram(cache_info.hash)) { + auto hle_program = hle_macros->GetHLEProgram(cache_info.hash); + if (!hle_program || Settings::values.disable_macro_hle) { + maxwell3d.RefreshParameters(); + cache_info.lle_program->Execute(parameters, method); + } else { cache_info.has_hle_program = true; cache_info.hle_program = std::move(hle_program); MICROPROFILE_SCOPE(MacroHLE); cache_info.hle_program->Execute(parameters, method); - } else { - maxwell3d.RefreshParameters(); - cache_info.lle_program->Execute(parameters, method); } } } |