Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/tpf.c:
return order;
}
-static void write_sm4_instruction(struct vkd3d_bytecode_buffer *buffer, const struct sm4_instruction *instr) +static void write_sm4_instruction(struct hlsl_ctx *ctx, struct vkd3d_bytecode_buffer *buffer,
I think we usually split the "pass `ctx` to this function" part in a dedicated patch. It feels much cleaner to me.