tests: Use test utils to create the pipeline state in test_ps_layer().

This commit is contained in:
Giovanni Mascellani
2024-01-22 15:35:44 +01:00
committed by Alexandre Julliard
parent 245cce02bd
commit bd84b96e9f
Notes: Alexandre Julliard 2024-01-22 22:53:41 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/546
2 changed files with 4 additions and 13 deletions

View File

@ -994,6 +994,7 @@ struct test_context_desc
bool no_render_target;
bool no_root_signature;
bool no_pipeline;
const D3D12_SHADER_BYTECODE *vs;
const D3D12_SHADER_BYTECODE *ps;
};
@ -1153,7 +1154,7 @@ static inline bool init_test_context_(unsigned int line, struct test_context *co
context->pipeline_state = create_pipeline_state_(line, device,
context->root_signature, context->render_target_desc.Format,
NULL, desc ? desc->ps : NULL, NULL);
desc ? desc->vs : NULL, desc ? desc->ps : NULL, NULL);
return true;
}