tests: Check the result of vkCreateGraphicsPipelines().

This commit is contained in:
Zebediah Figura 2023-07-01 18:30:06 -05:00 committed by Alexandre Julliard
parent 39563aa5b3
commit e847df9528
Notes: Alexandre Julliard 2023-09-13 23:17:55 +02: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/335

View File

@ -612,6 +612,7 @@ static VkPipeline create_graphics_pipeline(const struct vulkan_shader_runner *ru
VkDevice device = runner->device;
VkPipeline pipeline;
unsigned int i, j;
VkResult vr;
int ret;
memset(stage_desc, 0, sizeof(stage_desc));
@ -714,7 +715,8 @@ static VkPipeline create_graphics_pipeline(const struct vulkan_shader_runner *ru
pipeline_desc.renderPass = render_pass;
pipeline_desc.subpass = 0;
VK_CALL(vkCreateGraphicsPipelines(runner->device, VK_NULL_HANDLE, 1, &pipeline_desc, NULL, &pipeline));
vr = VK_CALL(vkCreateGraphicsPipelines(runner->device, VK_NULL_HANDLE, 1, &pipeline_desc, NULL, &pipeline));
ok(vr == VK_SUCCESS, "Failed to create graphics pipeline, vr %d.\n", vr);
VK_CALL(vkDestroyShaderModule(device, stage_desc[0].module, NULL));
VK_CALL(vkDestroyShaderModule(device, stage_desc[1].module, NULL));