libs/vkd3d-shader: Do not emit output setup for ret in geometry shaders.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-06-26 14:41:50 +02:00 committed by Alexandre Julliard
parent c21a8b56a0
commit d14f9196f9

View File

@ -4541,7 +4541,8 @@ static void vkd3d_dxbc_compiler_emit_return(struct vkd3d_dxbc_compiler *compiler
{
struct vkd3d_spirv_builder *builder = &compiler->spirv_builder;
vkd3d_dxbc_compiler_emit_output_setup_invocation(compiler);
if (compiler->shader_type != VKD3D_SHADER_TYPE_GEOMETRY)
vkd3d_dxbc_compiler_emit_output_setup_invocation(compiler);
vkd3d_spirv_build_op_return(builder);
}