vkd3d: Take the root signature from shaders when creating graphics pipelines.

If the root signature wasn't explicitly specified.

This fixes a failure in The Touryst.
This commit is contained in:
Giovanni Mascellani
2025-02-20 13:09:02 +01:00
committed by Henri Verbeet
parent 42b65e80cf
commit 2feb3a3bba
Notes: Henri Verbeet 2025-02-20 16:07:51 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1384
2 changed files with 21 additions and 7 deletions

View File

@@ -3491,7 +3491,6 @@ static void test_create_graphics_pipeline_state(void)
pso_desc.VS = shader_bytecode(vs_with_rs_code, sizeof(vs_with_rs_code));
hr = ID3D12Device_CreateGraphicsPipelineState(device, &pso_desc,
&IID_ID3D12PipelineState, (void **)&pipeline_state);
todo
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
if (SUCCEEDED(hr))
ID3D12PipelineState_Release(pipeline_state);
@@ -3501,7 +3500,6 @@ static void test_create_graphics_pipeline_state(void)
pso_desc.PS = shader_bytecode(ps_with_rs_code, sizeof(ps_with_rs_code));
hr = ID3D12Device_CreateGraphicsPipelineState(device, &pso_desc,
&IID_ID3D12PipelineState, (void **)&pipeline_state);
todo
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
if (SUCCEEDED(hr))
ID3D12PipelineState_Release(pipeline_state);
@@ -3512,7 +3510,6 @@ static void test_create_graphics_pipeline_state(void)
pso_desc.PS = shader_bytecode(ps_with_rs_code, sizeof(ps_with_rs_code));
hr = ID3D12Device_CreateGraphicsPipelineState(device, &pso_desc,
&IID_ID3D12PipelineState, (void **)&pipeline_state);
todo
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
if (SUCCEEDED(hr))
ID3D12PipelineState_Release(pipeline_state);