tests: Use create_pipeline_state() in more places.

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-11-09 18:06:21 +01:00
committed by Alexandre Julliard
parent 4ff26ef3c4
commit 374d56fc8e
2 changed files with 8 additions and 20 deletions

View File

@@ -486,8 +486,11 @@ static void init_pipeline_state_desc(D3D12_GRAPHICS_PIPELINE_STATE_DESC *desc,
desc->InputLayout = *input_layout;
desc->SampleMask = ~(UINT)0;
desc->PrimitiveTopologyType = D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLE;
desc->NumRenderTargets = 1;
desc->RTVFormats[0] = rt_format;
if (rt_format)
{
desc->NumRenderTargets = 1;
desc->RTVFormats[0] = rt_format;
}
desc->SampleDesc.Count = 1;
}