diff --git a/libs/vkd3d-shader/ir.c b/libs/vkd3d-shader/ir.c index 1d4c0cb1..16e5948f 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -449,7 +449,8 @@ static enum vkd3d_result control_point_normaliser_emit_hs_input(struct control_p shader_dst_param_io_init(param, e, VKD3DSPR_INPUT, 2); param->reg.idx[0].offset = input_control_point_count; - param->reg.idx[1].offset = i; + param->reg.idx[1].offset = e->register_index; + param->write_mask = e->mask; ++ins; }