mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/spirv: Handle the WAVE_ALL_TRUE instruction.
This commit is contained in:
parent
8e2b351538
commit
77ec2a5caa
Notes:
Alexandre Julliard
2024-05-02 22:40:21 +02: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/800
@ -9764,6 +9764,8 @@ static SpvOp map_wave_bool_op(enum vkd3d_shader_opcode handler_idx)
|
||||
{
|
||||
case VKD3DSIH_WAVE_ACTIVE_ALL_EQUAL:
|
||||
return SpvOpGroupNonUniformAllEqual;
|
||||
case VKD3DSIH_WAVE_ALL_TRUE:
|
||||
return SpvOpGroupNonUniformAll;
|
||||
default:
|
||||
vkd3d_unreachable();
|
||||
}
|
||||
@ -10134,6 +10136,7 @@ static int spirv_compiler_handle_instruction(struct spirv_compiler *compiler,
|
||||
spirv_compiler_emit_cut_stream(compiler, instruction);
|
||||
break;
|
||||
case VKD3DSIH_WAVE_ACTIVE_ALL_EQUAL:
|
||||
case VKD3DSIH_WAVE_ALL_TRUE:
|
||||
spirv_compiler_emit_wave_bool_op(compiler, instruction);
|
||||
break;
|
||||
case VKD3DSIH_DCL:
|
||||
|
Loading…
Reference in New Issue
Block a user