yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #6670 from ReinUsesLisp/prepare-rt

texture_cache: Always prepare image views on render targets
This commit is contained in:
Fernando S 2021-07-19 03:21:25 +02:00 committed by GitHub
commit 053860d9cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -599,6 +599,12 @@ void TextureCache<P>::UpdateRenderTargets(bool is_clear) {
using namespace VideoCommon::Dirty; using namespace VideoCommon::Dirty;
auto& flags = maxwell3d.dirty.flags; auto& flags = maxwell3d.dirty.flags;
if (!flags[Dirty::RenderTargets]) { 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; return;
} }
flags[Dirty::RenderTargets] = false; flags[Dirty::RenderTargets] = false;