diff options
| author | 2021-11-07 17:52:45 +0100 | |
|---|---|---|
| committer | 2022-10-06 21:00:51 +0200 | |
| commit | 3f8e7a55851a613becf715cbf3016a8e9f63d65f (patch) | |
| tree | 6b42cdddda0fb26fd0241ae2def28416179c3d51 /src/video_core/texture_cache | |
| parent | OpenGl: Implement Channels. (diff) | |
| download | yuzu-3f8e7a55851a613becf715cbf3016a8e9f63d65f.tar.gz yuzu-3f8e7a55851a613becf715cbf3016a8e9f63d65f.tar.xz yuzu-3f8e7a55851a613becf715cbf3016a8e9f63d65f.zip | |
VideoCore: Fix channels with disk pipeline/shader cache.
Diffstat (limited to 'src/video_core/texture_cache')
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 2731aead0..e8b0b0a3b 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h | |||
| @@ -885,12 +885,14 @@ void TextureCache<P>::InvalidateScale(Image& image) { | |||
| 885 | } | 885 | } |
| 886 | image.image_view_ids.clear(); | 886 | image.image_view_ids.clear(); |
| 887 | image.image_view_infos.clear(); | 887 | image.image_view_infos.clear(); |
| 888 | if constexpr (ENABLE_VALIDATION) { | 888 | for (auto& this_state : channel_storage) { |
| 889 | std::ranges::fill(state->graphics_image_view_ids, CORRUPT_ID); | 889 | if constexpr (ENABLE_VALIDATION) { |
| 890 | std::ranges::fill(state->compute_image_view_ids, CORRUPT_ID); | 890 | std::ranges::fill(this_state.graphics_image_view_ids, CORRUPT_ID); |
| 891 | std::ranges::fill(this_state.compute_image_view_ids, CORRUPT_ID); | ||
| 892 | } | ||
| 893 | this_state.graphics_image_table.Invalidate(); | ||
| 894 | this_state.compute_image_table.Invalidate(); | ||
| 891 | } | 895 | } |
| 892 | state->graphics_image_table.Invalidate(); | ||
| 893 | state->compute_image_table.Invalidate(); | ||
| 894 | has_deleted_images = true; | 896 | has_deleted_images = true; |
| 895 | } | 897 | } |
| 896 | 898 | ||