Module: Mesa Branch: main Commit: 73cc952870dc2f60776f3defc60bb5c6f79f8ffe URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=73cc952870dc2f60776f3defc60bb5c6f79f8ffe
Author: Konstantin Seurer <konstantin.seu...@gmail.com> Date: Mon Oct 30 20:14:28 2023 +0100 radv/sqtt: Avoid duplicate stage check Reviewed-by: Friedrich Vock <friedrich.v...@gmx.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25224> --- src/amd/vulkan/layers/radv_sqtt_layer.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/amd/vulkan/layers/radv_sqtt_layer.c b/src/amd/vulkan/layers/radv_sqtt_layer.c index 346ea279a54..a63080d9fb8 100644 --- a/src/amd/vulkan/layers/radv_sqtt_layer.c +++ b/src/amd/vulkan/layers/radv_sqtt_layer.c @@ -1562,15 +1562,10 @@ radv_register_rt_pipeline(struct radv_device *device, struct radv_ray_tracing_pi for (unsigned i = 0; i < pipeline->stage_count; i++) { struct radv_ray_tracing_stage *stage = &pipeline->stages[i]; - if (!radv_ray_tracing_stage_is_compiled(stage)) { - if (stage->stage == MESA_SHADER_ANY_HIT) - max_any_hit_stack_size = MAX2(max_any_hit_stack_size, stage->stack_size); - else if (stage->stage == MESA_SHADER_INTERSECTION) - max_intersection_stack_size = MAX2(max_intersection_stack_size, stage->stack_size); - else - unreachable("invalid non-compiled stage"); - continue; - } + if (stage->stage == MESA_SHADER_ANY_HIT) + max_any_hit_stack_size = MAX2(max_any_hit_stack_size, stage->stack_size); + else if (stage->stage == MESA_SHADER_INTERSECTION) + max_intersection_stack_size = MAX2(max_intersection_stack_size, stage->stack_size); if (!pipeline->stages[i].shader) continue;