vkd3d-shader: Do not use built-ins for hull shader clip/cull distance built-ins.

We need these to be per-vertex. This fixes the Wine d3d11
test_clip_distance() test.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2020-09-04 20:31:16 +04:30 committed by Alexandre Julliard
parent 56b042d1fa
commit e339cc0edb
1 changed files with 3 additions and 1 deletions

View File

@ -5046,9 +5046,11 @@ static void vkd3d_dxbc_compiler_emit_initial_declarations(struct vkd3d_dxbc_comp
}
if (compiler->shader_type != VKD3D_SHADER_TYPE_HULL)
{
vkd3d_spirv_builder_begin_main_function(builder);
vkd3d_dxbc_compiler_emit_shader_signature_outputs(compiler);
vkd3d_dxbc_compiler_emit_shader_signature_outputs(compiler);
}
}
static size_t vkd3d_dxbc_compiler_get_current_function_location(struct vkd3d_dxbc_compiler *compiler)