mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
libs/vkd3d-shader: Fix discard_z instruction.
This commit is contained in:
parent
d37bfd9d3e
commit
e0cb3776c1
@ -887,7 +887,8 @@ static const struct vkd3d_sm4_opcode_info opcode_table[] =
|
||||
{VKD3D_SM4_OP_DEFAULT, VKD3DSIH_DEFAULT, "", ""},
|
||||
{VKD3D_SM4_OP_DERIV_RTX, VKD3DSIH_DSX, "f", "f"},
|
||||
{VKD3D_SM4_OP_DERIV_RTY, VKD3DSIH_DSY, "f", "f"},
|
||||
{VKD3D_SM4_OP_DISCARD, VKD3DSIH_TEXKILL, "", "u"},
|
||||
{VKD3D_SM4_OP_DISCARD, VKD3DSIH_TEXKILL, "", "u",
|
||||
shader_sm4_read_conditional_op},
|
||||
{VKD3D_SM4_OP_DIV, VKD3DSIH_DIV, "f", "ff"},
|
||||
{VKD3D_SM4_OP_DP2, VKD3DSIH_DP2, "f", "ff"},
|
||||
{VKD3D_SM4_OP_DP3, VKD3DSIH_DP3, "f", "ff"},
|
||||
|
@ -4136,8 +4136,7 @@ static void vkd3d_dxbc_compiler_emit_kill(struct vkd3d_dxbc_compiler *compiler,
|
||||
uint32_t condition_id, target_block_id, merge_block_id;
|
||||
|
||||
condition_id = vkd3d_dxbc_compiler_emit_load_src(compiler, src, VKD3DSP_WRITEMASK_0);
|
||||
condition_id = vkd3d_dxbc_compiler_emit_int_to_bool(compiler,
|
||||
VKD3D_SHADER_CONDITIONAL_OP_NZ, 1, condition_id);
|
||||
condition_id = vkd3d_dxbc_compiler_emit_int_to_bool(compiler, instruction->flags, 1, condition_id);
|
||||
|
||||
merge_block_id = vkd3d_spirv_alloc_id(builder);
|
||||
target_block_id = vkd3d_spirv_alloc_id(builder);
|
||||
|
Loading…
x
Reference in New Issue
Block a user