GS/Vulkan: Clear textures/RTs at end of frame

Prevents us from updating potentially changed-state descriptors.
This commit is contained in:
Stenzek 2023-04-15 18:32:50 +10:00 committed by refractionpcsx2
parent d646bbf5c1
commit 72f70d4789
1 changed files with 8 additions and 0 deletions

View File

@ -2899,6 +2899,14 @@ void GSDeviceVK::InvalidateCachedState()
m_dirty_flags |= DIRTY_FLAG_VERTEX_BUFFER;
if (m_index_buffer != VK_NULL_HANDLE)
m_dirty_flags |= DIRTY_FLAG_INDEX_BUFFER;
for (u32 i = 0; i < NUM_TFX_TEXTURES; i++)
m_tfx_textures[i] = &m_null_texture;
m_utility_texture = &m_null_texture;
m_current_framebuffer = VK_NULL_HANDLE;
m_current_render_target = nullptr;
m_current_depth_target = nullptr;
m_current_pipeline_layout = PipelineLayout::Undefined;
m_tfx_descriptor_sets[1] = VK_NULL_HANDLE;
m_tfx_descriptor_sets[2] = VK_NULL_HANDLE;