Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl_codegen.c:
return progress;
}
+static bool copy_propagation_process_switch(struct hlsl_ctx *ctx, struct hlsl_ir_switch *s,
struct copy_propagation_state *state)
+{
- struct copy_propagation_state inner_state;
- struct hlsl_ir_switch_case *c;
- bool progress = false;
- LIST_FOR_EACH_ENTRY(c, &s->cases, struct hlsl_ir_switch_case, entry)
I guess here we should also try to transform the switch selector. Apparently we forgot about doing that for `if` too, so if you fancy taking a stab at that too, you're welcome. The code is not currently broken, though, so it's ok if this comes in a later MR.