mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Enable DemoteToHelperInvocation capability.
Fixes validation errors complaining about invalid shader modules. Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
619bc19bdd
commit
ae44e06deb
@ -6510,6 +6510,7 @@ static void vkd3d_dxbc_compiler_emit_kill(struct vkd3d_dxbc_compiler *compiler,
|
||||
if (vkd3d_dxbc_compiler_is_target_extension_supported(compiler,
|
||||
VKD3D_SHADER_TARGET_EXTENSION_SPV_EXT_DEMOTE_TO_HELPER_INVOCATION))
|
||||
{
|
||||
vkd3d_spirv_enable_capability(builder, SpvCapabilityDemoteToHelperInvocationEXT);
|
||||
vkd3d_spirv_build_op_demote_to_helper_invocation(builder);
|
||||
vkd3d_spirv_build_op_branch(builder, merge_block_id);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user