mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
tests/shader_runner_vulkan: Check if create_shader_stage() fails in create_compute_pipeline().
This commit is contained in:
parent
10edcec030
commit
31c3d46925
Notes:
Henri Verbeet
2025-01-20 16:18:51 +01:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Elizabeth Figura (@zfigura) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1330
@ -861,12 +861,16 @@ static VkPipeline create_compute_pipeline(struct vulkan_shader_runner *runner, V
|
|||||||
bool ret;
|
bool ret;
|
||||||
|
|
||||||
ret = compile_hlsl_and_scan(runner, SHADER_TYPE_CS);
|
ret = compile_hlsl_and_scan(runner, SHADER_TYPE_CS);
|
||||||
todo_if (runner->r.is_todo) ok(ret, "Failed to compile shader.\n");
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
{
|
||||||
|
trace("Failed to compile HLSL shader.\n");
|
||||||
return VK_NULL_HANDLE;
|
return VK_NULL_HANDLE;
|
||||||
|
}
|
||||||
|
|
||||||
ret = create_shader_stage(runner, &pipeline_desc.stage, SHADER_TYPE_CS, VK_SHADER_STAGE_COMPUTE_BIT);
|
ret = create_shader_stage(runner, &pipeline_desc.stage, SHADER_TYPE_CS, VK_SHADER_STAGE_COMPUTE_BIT);
|
||||||
ok(ret, "Failed to compile shader.\n");
|
todo_if (runner->r.is_todo) ok(ret, "Failed to compile SPIR-V shader.\n");
|
||||||
|
if (!ret)
|
||||||
|
return VK_NULL_HANDLE;
|
||||||
|
|
||||||
pipeline_desc.layout = pipeline_layout;
|
pipeline_desc.layout = pipeline_layout;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user