From 70642484cd995bb11a8c19391baaa6cae015fb5b Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 17 Oct 2019 23:08:14 +0300 Subject: [PATCH] vk: Check for cyclic references if sampler is marked as do-not-cache. - Usually an indication of surface/texture cache interaction. --- rpcs3/Emu/RSX/VK/VKGSRender.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKGSRender.cpp b/rpcs3/Emu/RSX/VK/VKGSRender.cpp index 3053d6c6e0..3d67f17dad 100644 --- a/rpcs3/Emu/RSX/VK/VKGSRender.cpp +++ b/rpcs3/Emu/RSX/VK/VKGSRender.cpp @@ -1418,7 +1418,7 @@ void VKGSRender::end() check_heap_status(VK_HEAP_CHECK_TEXTURE_UPLOAD_STORAGE); *sampler_state = m_texture_cache.upload_texture(*m_current_command_buffer, rsx::method_registers.vertex_textures[i], m_rtts); - if (sampler_state->is_cyclic_reference) + if (sampler_state->is_cyclic_reference || sampler_state->external_subresource_desc.do_not_cache) { check_for_cyclic_refs |= true; }