mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-20 04:47:57 +00:00
[Rasterizer]: Implement "Skip CPU Inner Invalidation" hack
This commit is contained in:
parent
693404bf37
commit
3e44389bfc
7 changed files with 28 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <utility>
|
||||
#include "common/common_types.h"
|
||||
#include "common/polyfill_thread.h"
|
||||
#include "common/settings.h"
|
||||
#include "video_core/cache_types.h"
|
||||
#include "video_core/engines/fermi_2d.h"
|
||||
#include "video_core/gpu.h"
|
||||
|
@ -100,8 +101,10 @@ public:
|
|||
VideoCommon::CacheType which = VideoCommon::CacheType::All) = 0;
|
||||
|
||||
virtual void InnerInvalidation(std::span<const std::pair<DAddr, std::size_t>> sequences) {
|
||||
for (const auto& [cpu_addr, size] : sequences) {
|
||||
InvalidateRegion(cpu_addr, size);
|
||||
if (!Settings::values.skip_cpu_inner_invalidation.GetValue()) {
|
||||
for (const auto& [cpu_addr, size] : sequences) {
|
||||
InvalidateRegion(cpu_addr, size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue