diff options
| author | 2023-06-14 14:11:46 -0400 | |
|---|---|---|
| committer | 2023-06-14 14:11:46 -0400 | |
| commit | 8d6aefdcc452b602d94a84d13bbbc15f806b689c (patch) | |
| tree | 772ec67651a9e8f9c319815bfbfc95c274ff30c9 /src/video_core/texture_cache | |
| parent | Merge pull request #10773 from 8bitDream/vcpkg (diff) | |
| download | yuzu-8d6aefdcc452b602d94a84d13bbbc15f806b689c.tar.gz yuzu-8d6aefdcc452b602d94a84d13bbbc15f806b689c.tar.xz yuzu-8d6aefdcc452b602d94a84d13bbbc15f806b689c.zip | |
video_core: optionally skip barriers on feedback loops
Diffstat (limited to 'src/video_core/texture_cache')
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 4 |
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 c7f7448e9..43b7ac0a6 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) { | |||
| 186 | 186 | ||
| 187 | template <class P> | 187 | template <class P> |
| 188 | void TextureCache<P>::CheckFeedbackLoop(std::span<const ImageViewInOut> views) { | 188 | void TextureCache<P>::CheckFeedbackLoop(std::span<const ImageViewInOut> views) { |
| 189 | if (!Settings::values.barrier_feedback_loops.GetValue()) { | ||
| 190 | return; | ||
| 191 | } | ||
| 192 | |||
| 189 | const bool requires_barrier = [&] { | 193 | const bool requires_barrier = [&] { |
| 190 | for (const auto& view : views) { | 194 | for (const auto& view : views) { |
| 191 | if (!view.id) { | 195 | if (!view.id) { |