tests: Don't return garbage in create_*_state on failure.
Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
parent
50ffdb1850
commit
5b115b1f89
|
@ -832,7 +832,7 @@ static ID3D12PipelineState *create_compute_pipeline_state_(unsigned int line, ID
|
|||
ID3D12RootSignature *root_signature, const D3D12_SHADER_BYTECODE cs)
|
||||
{
|
||||
D3D12_COMPUTE_PIPELINE_STATE_DESC pipeline_state_desc;
|
||||
ID3D12PipelineState *pipeline_state;
|
||||
ID3D12PipelineState *pipeline_state = NULL;
|
||||
HRESULT hr;
|
||||
|
||||
memset(&pipeline_state_desc, 0, sizeof(pipeline_state_desc));
|
||||
|
@ -843,7 +843,6 @@ static ID3D12PipelineState *create_compute_pipeline_state_(unsigned int line, ID
|
|||
hr = ID3D12Device_CreateComputePipelineState(device, &pipeline_state_desc,
|
||||
&IID_ID3D12PipelineState, (void **)&pipeline_state);
|
||||
ok_(line)(SUCCEEDED(hr), "Failed to create compute pipeline state, hr %#x.\n", hr);
|
||||
|
||||
return pipeline_state;
|
||||
}
|
||||
|
||||
|
@ -851,9 +850,9 @@ static ID3D12PipelineState *create_compute_pipeline_state_(unsigned int line, ID
|
|||
static ID3D12CommandSignature *create_command_signature_(unsigned int line,
|
||||
ID3D12Device *device, D3D12_INDIRECT_ARGUMENT_TYPE argument_type)
|
||||
{
|
||||
ID3D12CommandSignature *command_signature = NULL;
|
||||
D3D12_COMMAND_SIGNATURE_DESC signature_desc;
|
||||
D3D12_INDIRECT_ARGUMENT_DESC argument_desc;
|
||||
ID3D12CommandSignature *command_signature;
|
||||
HRESULT hr;
|
||||
|
||||
argument_desc.Type = argument_type;
|
||||
|
|
Loading…
Reference in New Issue