Skip to content

Commit

Permalink
Fix depth buffer write-after-write hazard in subpass 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed May 5, 2024
1 parent 50cf2ff commit 6424e14
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions client/src/graphics/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,14 @@ impl Base {
vk::SubpassDependency {
src_subpass: vk::SUBPASS_EXTERNAL,
dst_subpass: 0,
src_stage_mask: vk::PipelineStageFlags::COLOR_ATTACHMENT_OUTPUT,
dst_stage_mask: vk::PipelineStageFlags::COLOR_ATTACHMENT_OUTPUT,
src_stage_mask: vk::PipelineStageFlags::COLOR_ATTACHMENT_OUTPUT
| vk::PipelineStageFlags::LATE_FRAGMENT_TESTS,
dst_stage_mask: vk::PipelineStageFlags::COLOR_ATTACHMENT_OUTPUT
| vk::PipelineStageFlags::EARLY_FRAGMENT_TESTS,
dst_access_mask: vk::AccessFlags::COLOR_ATTACHMENT_READ
| vk::AccessFlags::COLOR_ATTACHMENT_WRITE,
| vk::AccessFlags::COLOR_ATTACHMENT_WRITE
| vk::AccessFlags::DEPTH_STENCIL_ATTACHMENT_READ
| vk::AccessFlags::DEPTH_STENCIL_ATTACHMENT_WRITE,
..Default::default()
},
vk::SubpassDependency {
Expand Down

0 comments on commit 6424e14

Please sign in to comment.