Conor McCarthy : vkd3d-shader/spirv: Set the register index count in spirv_compiler_emit_default_control_point_phase().
Module: vkd3d Branch: master Commit: 532fe0181863a2af3cf16b8cc5f7431d3fee5790 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/532fe0181863a2af3cf16b8cc5f743... Author: Conor McCarthy <cmccarthy(a)codeweavers.com> Date: Fri May 26 16:36:19 2023 +1000 vkd3d-shader/spirv: Set the register index count in spirv_compiler_emit_default_control_point_phase(). --- libs/vkd3d-shader/spirv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c index 4bb4aabe..1c2a9190 100644 --- a/libs/vkd3d-shader/spirv.c +++ b/libs/vkd3d-shader/spirv.c @@ -6309,6 +6309,7 @@ static void spirv_compiler_emit_default_control_point_phase(struct spirv_compile invocation.reg.idx[0].offset = ~0u; invocation.reg.idx[1].offset = ~0u; invocation.reg.idx[2].offset = ~0u; + invocation.reg.idx_count = 0; invocation.swizzle = VKD3D_SHADER_NO_SWIZZLE; memset(&input_reg, 0, sizeof(input_reg)); @@ -6316,6 +6317,7 @@ static void spirv_compiler_emit_default_control_point_phase(struct spirv_compile input_reg.data_type = VKD3D_DATA_FLOAT; input_reg.idx[0].rel_addr = &invocation; input_reg.idx[2].offset = ~0u; + input_reg.idx_count = 2; input_id = spirv_compiler_get_register_id(compiler, &input_reg); assert(input_signature->element_count == output_signature->element_count);
participants (1)
-
Alexandre Julliard