From 2657593462eb8112743dbade985f8fb9deacb115 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Wed, 21 Feb 2024 14:35:20 -0800 Subject: [PATCH] Use barriers between all blur passes with SSAO and SSIL --- servers/rendering/renderer_rd/effects/ss_effects.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/servers/rendering/renderer_rd/effects/ss_effects.cpp b/servers/rendering/renderer_rd/effects/ss_effects.cpp index 46fb0a75d68..bdd687d9f4d 100644 --- a/servers/rendering/renderer_rd/effects/ss_effects.cpp +++ b/servers/rendering/renderer_rd/effects/ss_effects.cpp @@ -899,10 +899,9 @@ void SSEffects::screen_space_indirect_lighting(Ref 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 @@ -1285,9 +1284,7 @@ void SSEffects::generate_ssao(Ref 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 }