From b9afd756b05436c014e02915d309af0104d34623 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 24 Aug 2022 23:07:03 -0400 Subject: [PATCH] buffer_cache: fix GPU accuracy level --- src/video_core/buffer_cache/buffer_cache.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index f015dae566..5b047a50e1 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -811,7 +811,7 @@ bool BufferCache

::HasUncommittedFlushes() const noexcept { template void BufferCache

::AccumulateFlushes() { - if (Settings::values.gpu_accuracy.GetValue() != Settings::GPUAccuracy::High) { + if (!Settings::IsGPULevelHigh()) { uncommitted_ranges.clear(); return; } @@ -833,8 +833,7 @@ void BufferCache

::CommitAsyncFlushesHigh() { return; } MICROPROFILE_SCOPE(GPU_DownloadMemory); - const bool is_accuracy_normal = - Settings::values.gpu_accuracy.GetValue() == Settings::GPUAccuracy::Normal; + const bool is_accuracy_normal = !Settings::IsGPULevelHigh(); boost::container::small_vector, 1> downloads; u64 total_size_bytes = 0; @@ -913,7 +912,7 @@ void BufferCache

::CommitAsyncFlushesHigh() { template void BufferCache

::CommitAsyncFlushes() { - if (Settings::values.gpu_accuracy.GetValue() == Settings::GPUAccuracy::High) { + if (Settings::IsGPULevelHigh()) { CommitAsyncFlushesHigh(); } else { uncommitted_ranges.clear();