vkd3d-shader/tpf: Use instr.extra_bits for IF.

This commit is contained in:
Francisco Casas 2024-10-25 22:24:25 -03:00 committed by Henri Verbeet
parent e6c84862a8
commit 2083d505c7
Notes: Henri Verbeet 2024-11-04 17:12:25 +01:00
Approved-by: Elizabeth Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1242

View File

@ -6098,7 +6098,8 @@ static void write_sm4_if(const struct tpf_compiler *tpf, const struct hlsl_ir_if
{ {
struct sm4_instruction instr = 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, .src_count = 1,
}; };