Module: vkd3d Branch: master Commit: 9c6040df02cf461822a508561b94b60ee811cb5d URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/9c6040df02cf461822a508561b94b6... Author: Conor McCarthy <cmccarthy(a)codeweavers.com> Date: Fri May 26 16:35:23 2023 +1000 vkd3d-shader/spirv: Set the register index count in spirv_compiler_emit_dcl_indexable_temp(). --- libs/vkd3d-shader/spirv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/vkd3d-shader/spirv.c b/libs/vkd3d-shader/spirv.c index 7e8023f1..4bb4aabe 100644 --- a/libs/vkd3d-shader/spirv.c +++ b/libs/vkd3d-shader/spirv.c @@ -5299,6 +5299,7 @@ static void spirv_compiler_emit_dcl_indexable_temp(struct spirv_compiler *compil reg.type = VKD3DSPR_IDXTEMP; reg.idx[0].offset = temp->register_idx; reg.idx[1].offset = ~0u; + reg.idx_count = 1; function_location = spirv_compiler_get_current_function_location(compiler); vkd3d_spirv_begin_function_stream_insertion(builder, function_location);