mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-02 12:45:46 -06:00
vk_rasterizer: Fully initialize clear value of depth attachment (#4473)
Prevents redundant renderpass breaks from render state mismatching due to stale values being left in the array
This commit is contained in:
parent
c0d35332af
commit
5be4fb8584
@ -917,6 +917,7 @@ RenderState Rasterizer::BeginRendering(const GraphicsPipeline* pipeline) {
|
||||
auto& attachment = state.depth_stencil_attachment;
|
||||
attachment.image_view = *image_view.image_view;
|
||||
attachment.image_layout = image.backing->state.layout;
|
||||
attachment.clear_value = {};
|
||||
|
||||
if (regs.depth_buffer.DepthValid()) {
|
||||
attachment.clear_value[0] = is_depth_clear ? std::bit_cast<u32>(regs.depth_clear) : 0u;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user