mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/spirv: Handle RETP in spirv_compiler_handle_instruction().
This commit is contained in:
parent
bc1b5e7132
commit
f3d464de0e
Notes:
Alexandre Julliard
2024-01-17 22:42:55 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/450
@ -7972,10 +7972,6 @@ static int spirv_compiler_emit_control_flow_instruction(struct spirv_compiler *c
|
||||
compiler->main_block_open = false;
|
||||
break;
|
||||
|
||||
case VKD3DSIH_RETP:
|
||||
spirv_compiler_emit_retc(compiler, instruction);
|
||||
break;
|
||||
|
||||
default:
|
||||
ERR("Unexpected instruction %#x.\n", instruction->handler_idx);
|
||||
break;
|
||||
@ -9741,10 +9737,12 @@ static int spirv_compiler_handle_instruction(struct spirv_compiler *compiler,
|
||||
case VKD3DSIH_IF:
|
||||
case VKD3DSIH_LOOP:
|
||||
case VKD3DSIH_RET:
|
||||
case VKD3DSIH_RETP:
|
||||
case VKD3DSIH_SWITCH:
|
||||
ret = spirv_compiler_emit_control_flow_instruction(compiler, instruction);
|
||||
break;
|
||||
case VKD3DSIH_RETP:
|
||||
spirv_compiler_emit_retc(compiler, instruction);
|
||||
break;
|
||||
case VKD3DSIH_DISCARD:
|
||||
case VKD3DSIH_TEXKILL:
|
||||
spirv_compiler_emit_kill(compiler, instruction);
|
||||
|
Loading…
Reference in New Issue
Block a user