vkd3d: Do not attempt to create pipelines with unknown topology type.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2020-07-02 11:09:06 +02:00
parent 6967576904
commit 2e57b3d27e
1 changed files with 2 additions and 1 deletions

View File

@ -2695,7 +2695,8 @@ static HRESULT d3d12_pipeline_state_init_graphics(struct d3d12_pipeline_state *s
}
supports_extended_dynamic_state = device->device_info.extended_dynamic_state_features.extendedDynamicState &&
(desc->primitive_topology_type != D3D12_PRIMITIVE_TOPOLOGY_TYPE_PATCH || graphics->patch_vertex_count != 0);
(desc->primitive_topology_type != D3D12_PRIMITIVE_TOPOLOGY_TYPE_PATCH || graphics->patch_vertex_count != 0) &&
desc->primitive_topology_type != D3D12_PRIMITIVE_TOPOLOGY_TYPE_UNDEFINED;
d3d12_graphics_pipeline_state_init_dynamic_state(graphics, supports_extended_dynamic_state);