mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/tpf: Use the extra_bits field for _nz on discard.
This commit is contained in:
parent
3503145ced
commit
8fca801591
Notes:
Alexandre Julliard
2024-04-09 15:44:37 -05:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/744
@ -5399,7 +5399,8 @@ static void write_sm4_jump(const struct tpf_writer *tpf, const struct hlsl_ir_ju
|
|||||||
|
|
||||||
case HLSL_IR_JUMP_DISCARD_NZ:
|
case HLSL_IR_JUMP_DISCARD_NZ:
|
||||||
{
|
{
|
||||||
instr.opcode = VKD3D_SM4_OP_DISCARD | VKD3D_SM4_CONDITIONAL_NZ;
|
instr.opcode = VKD3D_SM4_OP_DISCARD;
|
||||||
|
instr.extra_bits = VKD3D_SM4_CONDITIONAL_NZ;
|
||||||
|
|
||||||
memset(&instr.srcs[0], 0, sizeof(*instr.srcs));
|
memset(&instr.srcs[0], 0, sizeof(*instr.srcs));
|
||||||
instr.src_count = 1;
|
instr.src_count = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user