mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Ensure that SM4 endif has 0 source registers.
Signed-off-by: Francisco Casas <fcasas@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
93c6fd0eb0
commit
7d31fd1788
@ -1905,6 +1905,7 @@ static void write_sm4_if(struct hlsl_ctx *ctx, struct vkd3d_bytecode_buffer *buf
|
||||
}
|
||||
|
||||
instr.opcode = VKD3D_SM4_OP_ENDIF;
|
||||
instr.src_count = 0;
|
||||
write_sm4_instruction(buffer, &instr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user