From ae2d86b99cef69e7c881cebcf091f36e722b937c Mon Sep 17 00:00:00 2001 From: Shaun Ren Date: Tue, 15 Oct 2024 16:33:21 -0400 Subject: [PATCH] vkd3d-shader/tpf: Determine SIV from SV and index in write_sm4_dcl_semantic(). --- libs/vkd3d-shader/tpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/tpf.c b/libs/vkd3d-shader/tpf.c index 92d3997a..10456f0e 100644 --- a/libs/vkd3d-shader/tpf.c +++ b/libs/vkd3d-shader/tpf.c @@ -4918,7 +4918,7 @@ static void write_sm4_dcl_semantic(const struct tpf_compiler *tpf, const struct { VKD3D_ASSERT(semantic != VKD3D_SHADER_SV_NONE); instr.idx_count = 1; - instr.idx[0] = semantic; + instr.idx[0] = vkd3d_siv_from_sysval_indexed(semantic, var->semantic.index); } write_sm4_instruction(tpf, &instr);