mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
radv/sqtt: Avoid duplicate stage check
Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25224>
This commit is contained in:
parent
77b9a6f9e2
commit
73cc952870
1 changed files with 4 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue