Skip to content

Commit

Permalink
Merge pull request godotengine#88649 from clayjohn/RD-ss-barriers
Browse files Browse the repository at this point in the history
Use barriers between all blur passes with SSAO and SSIL
  • Loading branch information
akien-mga committed Feb 22, 2024
2 parents 5ce436f + 2657593 commit 8bad68d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions servers/rendering/renderer_rd/effects/ss_effects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,10 +899,9 @@ void SSEffects::screen_space_indirect_lighting(Ref<RenderSceneBuffersRD> p_rende
int y_groups = p_ssil_buffers.buffer_height;

RD::get_singleton()->compute_list_dispatch_threads(compute_list, x_groups, y_groups, 1);
if (ssil_quality > RS::ENV_SSIL_QUALITY_VERY_LOW) {
RD::get_singleton()->compute_list_add_barrier(compute_list);
}
}

RD::get_singleton()->compute_list_add_barrier(compute_list);
}

RD::get_singleton()->draw_command_end_label(); // Blur
Expand Down Expand Up @@ -1285,9 +1284,7 @@ void SSEffects::generate_ssao(Ref<RenderSceneBuffersRD> p_render_buffers, SSAORe
RD::get_singleton()->compute_list_dispatch_threads(compute_list, p_ssao_buffers.buffer_width, p_ssao_buffers.buffer_height, 1);
}

if (ssao_quality > RS::ENV_SSAO_QUALITY_VERY_LOW) {
RD::get_singleton()->compute_list_add_barrier(compute_list);
}
RD::get_singleton()->compute_list_add_barrier(compute_list);
}
RD::get_singleton()->draw_command_end_label(); // Blur
}
Expand Down

0 comments on commit 8bad68d

Please sign in to comment.