vk: RDB fixup

This commit is contained in:
kd-11 2019-08-17 14:06:57 +03:00 committed by kd-11
parent 7fdb4976d8
commit f06559412e
1 changed files with 15 additions and 8 deletions

View File

@ -1922,6 +1922,8 @@ void VKGSRender::clear_surface(u32 mask)
{ {
verify(HERE), depth_stencil_mask; verify(HERE), depth_stencil_mask;
if (!g_cfg.video.read_depth_buffer)
{
// Only one aspect was cleared. Make sure to memory intialize the other before removing dirty flag // Only one aspect was cleared. Make sure to memory intialize the other before removing dirty flag
if (mask == 1) if (mask == 1)
{ {
@ -1936,6 +1938,11 @@ void VKGSRender::clear_surface(u32 mask)
depth_stencil_mask |= VK_IMAGE_ASPECT_DEPTH_BIT; depth_stencil_mask |= VK_IMAGE_ASPECT_DEPTH_BIT;
} }
} }
else
{
ds->write_barrier(*m_current_command_buffer);
}
}
} }
} }