Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/tpf.c:
src->swizzle = hlsl_map_swizzle(hlsl_swizzle_from_writemask(writemask), map_writemask);
}
-static uint32_t sm4_encode_register(const struct sm4_register *reg)
For next time, please make this two different commits.
Also, it would seem that `sm4_encode_register()` might remain as a useful helper, doesn't it?