From 2083d505c7e5df666bb407cf4201bd269e34bacf Mon Sep 17 00:00:00 2001 From: Francisco Casas Date: Fri, 25 Oct 2024 22:24:25 -0300 Subject: [PATCH] vkd3d-shader/tpf: Use instr.extra_bits for IF. --- libs/vkd3d-shader/tpf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/tpf.c b/libs/vkd3d-shader/tpf.c index 028a2189..e128d26a 100644 --- a/libs/vkd3d-shader/tpf.c +++ b/libs/vkd3d-shader/tpf.c @@ -6098,7 +6098,8 @@ static void write_sm4_if(const struct tpf_compiler *tpf, const struct hlsl_ir_if { struct sm4_instruction instr = { - .opcode = VKD3D_SM4_OP_IF | VKD3D_SM4_CONDITIONAL_NZ, + .opcode = VKD3D_SM4_OP_IF, + .extra_bits = VKD3D_SM4_CONDITIONAL_NZ, .src_count = 1, };