Zebediah Figura : vkd3d-shader/ir: Synthesize HS inputs with the register index and write mask of the signature element.
Module: vkd3d Branch: master Commit: 852eefc01df90c4202212944ecc4af4bac7a5fae URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/852eefc01df90c4202212944ecc4af... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Tue Oct 24 16:55:16 2023 -0500 vkd3d-shader/ir: Synthesize HS inputs with the register index and write mask of the signature element. This pass was written as if to output normalized I/O, but it runs before the I/O normalization pass. Fixes: 98b5e2c6e01199d714d18fccfe54826a680aecbf --- libs/vkd3d-shader/ir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }
participants (1)
-
Alexandre Julliard