mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
libs/vkd3d-shader: Get rid of VKD3D_BLOCK_ELSE.
This commit is contained in:
parent
9f831b938a
commit
c112f2ed46
@ -1771,7 +1771,6 @@ struct vkd3d_control_flow_info
|
||||
enum
|
||||
{
|
||||
VKD3D_BLOCK_IF,
|
||||
VKD3D_BLOCK_ELSE,
|
||||
VKD3D_BLOCK_LOOP,
|
||||
VKD3D_BLOCK_SWITCH,
|
||||
VKD3D_BLOCK_NONE,
|
||||
@ -4229,14 +4228,14 @@ static void vkd3d_dxbc_compiler_emit_control_flow_instruction(struct vkd3d_dxbc_
|
||||
vkd3d_spirv_build_op_name(builder,
|
||||
cf_info->u.if_.else_block_id, "branch%u_false", cf_info->u.if_.id);
|
||||
vkd3d_spirv_build_op_label(builder, cf_info->u.if_.else_block_id);
|
||||
cf_info->current_block = VKD3D_BLOCK_ELSE;
|
||||
cf_info->current_block = VKD3D_BLOCK_IF;
|
||||
break;
|
||||
|
||||
case VKD3DSIH_ENDIF:
|
||||
assert(compiler->control_flow_depth);
|
||||
assert(cf_info->current_block != VKD3D_BLOCK_LOOP);
|
||||
|
||||
if (cf_info->current_block == VKD3D_BLOCK_IF || cf_info->current_block == VKD3D_BLOCK_ELSE)
|
||||
if (cf_info->current_block == VKD3D_BLOCK_IF)
|
||||
{
|
||||
vkd3d_spirv_build_op_branch(builder, cf_info->u.if_.merge_block_id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user