summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-06-22 06:10:08 +0200
committerGitHub <noreply@github.com>2023-06-22 06:10:08 +0200
commit7eb7d56b1bf96267969a913940ae9e35581ab27a (patch)
treeacbad457a360d5d5ab39ffb7d88d1f4d2e56a2f3 /src/video_core/texture_cache
parentMerge pull request #10841 from liamwhite/math-is-hard (diff)
parentvideo_core: optionally skip barriers on feedback loops (diff)
downloadyuzu-7eb7d56b1bf96267969a913940ae9e35581ab27a.tar
yuzu-7eb7d56b1bf96267969a913940ae9e35581ab27a.tar.gz
yuzu-7eb7d56b1bf96267969a913940ae9e35581ab27a.tar.bz2
yuzu-7eb7d56b1bf96267969a913940ae9e35581ab27a.tar.lz
yuzu-7eb7d56b1bf96267969a913940ae9e35581ab27a.tar.xz
yuzu-7eb7d56b1bf96267969a913940ae9e35581ab27a.tar.zst
yuzu-7eb7d56b1bf96267969a913940ae9e35581ab27a.zip
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/texture_cache.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index d25339c8c..d58bb69ff 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -186,6 +186,10 @@ void TextureCache<P>::FillComputeImageViews(std::span<ImageViewInOut> views) {
template <class P>
void TextureCache<P>::CheckFeedbackLoop(std::span<const ImageViewInOut> views) {
+ if (!Settings::values.barrier_feedback_loops.GetValue()) {
+ return;
+ }
+
const bool requires_barrier = [&] {
for (const auto& view : views) {
if (!view.id) {