mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-23 11:13:19 +01:00
vk: RDB fixup
This commit is contained in:
parent
7fdb4976d8
commit
f06559412e
@ -1922,18 +1922,25 @@ void VKGSRender::clear_surface(u32 mask)
|
|||||||
{
|
{
|
||||||
verify(HERE), depth_stencil_mask;
|
verify(HERE), depth_stencil_mask;
|
||||||
|
|
||||||
// Only one aspect was cleared. Make sure to memory intialize the other before removing dirty flag
|
if (!g_cfg.video.read_depth_buffer)
|
||||||
if (mask == 1)
|
|
||||||
{
|
{
|
||||||
// Depth was cleared, initialize stencil
|
// Only one aspect was cleared. Make sure to memory intialize the other before removing dirty flag
|
||||||
depth_stencil_clear_values.depthStencil.stencil = 0xFF;
|
if (mask == 1)
|
||||||
depth_stencil_mask |= VK_IMAGE_ASPECT_STENCIL_BIT;
|
{
|
||||||
|
// Depth was cleared, initialize stencil
|
||||||
|
depth_stencil_clear_values.depthStencil.stencil = 0xFF;
|
||||||
|
depth_stencil_mask |= VK_IMAGE_ASPECT_STENCIL_BIT;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Stencil was cleared, initialize depth
|
||||||
|
depth_stencil_clear_values.depthStencil.depth = 1.f;
|
||||||
|
depth_stencil_mask |= VK_IMAGE_ASPECT_DEPTH_BIT;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Stencil was cleared, initialize depth
|
ds->write_barrier(*m_current_command_buffer);
|
||||||
depth_stencil_clear_values.depthStencil.depth = 1.f;
|
|
||||||
depth_stencil_mask |= VK_IMAGE_ASPECT_DEPTH_BIT;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user