Zebediah Figura (@zfigura) commented about libs/vkd3d-shader/hlsl_codegen.c:
return false; }
- if (copy_propagation_replace_with_constant_vector(ctx, state, &load->src, HLSL_SWIZZLE(X, Y, Z, W), &load->node))
- if (copy_propagation_replace_with_constant_vector(ctx, state, &load->src, HLSL_SWIZZLE(X, Y, Z, W),
&load->node, load->node.index))
As long as we're already passing load->src we might as well just pass the whole load and reduce the need for another argument.