summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2021-07-19 03:21:25 +0200
committerGitHub <noreply@github.com>2021-07-19 03:21:25 +0200
commit053860d9cb44a81ed3f795ae261fa62b10d0816e (patch)
tree597514ad5fae28b4630646ee390df89522d04de3 /src/video_core/texture_cache
parentMerge pull request #6669 from ReinUsesLisp/fix-samples-sizes (diff)
parenttexture_cache: Always prepare image views on render targets (diff)
downloadyuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar
yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar.gz
yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar.bz2
yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar.lz
yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar.xz
yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.tar.zst
yuzu-053860d9cb44a81ed3f795ae261fa62b10d0816e.zip
Diffstat (limited to 'src/video_core/texture_cache')
-rw-r--r--src/video_core/texture_cache/texture_cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index 01de2d498..85ce06d56 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -599,6 +599,12 @@ void TextureCache<P>::UpdateRenderTargets(bool is_clear) {
using namespace VideoCommon::Dirty;
auto& flags = maxwell3d.dirty.flags;
if (!flags[Dirty::RenderTargets]) {
+ for (size_t index = 0; index < NUM_RT; ++index) {
+ ImageViewId& color_buffer_id = render_targets.color_buffer_ids[index];
+ PrepareImageView(color_buffer_id, true, is_clear && IsFullClear(color_buffer_id));
+ }
+ const ImageViewId depth_buffer_id = render_targets.depth_buffer_id;
+ PrepareImageView(depth_buffer_id, true, is_clear && IsFullClear(depth_buffer_id));
return;
}
flags[Dirty::RenderTargets] = false;