mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-31 18:47:09 +02:00
[vk] handle mali/adreno5xx driver bug returning VK_INCOMPLETE on graphics pipeline creation
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
998460b78b
commit
9b7dc8de45
1 changed files with 8 additions and 4 deletions
|
|
@ -727,10 +727,14 @@ PipelineLayout Device::CreatePipelineLayout(const VkPipelineLayoutCreateInfo& ci
|
||||||
return PipelineLayout(object, handle, *dld);
|
return PipelineLayout(object, handle, *dld);
|
||||||
}
|
}
|
||||||
|
|
||||||
Pipeline Device::CreateGraphicsPipeline(const VkGraphicsPipelineCreateInfo& ci,
|
Pipeline Device::CreateGraphicsPipeline(const VkGraphicsPipelineCreateInfo& ci, VkPipelineCache cache) const {
|
||||||
VkPipelineCache cache) const {
|
VkPipeline object = VK_NULL_HANDLE;
|
||||||
VkPipeline object;
|
auto const result = dld->vkCreateGraphicsPipelines(handle, cache, 1, &ci, nullptr, &object);
|
||||||
Check(dld->vkCreateGraphicsPipelines(handle, cache, 1, &ci, nullptr, &object));
|
// Adreno 5xx drivers do not properly return error when a graphics pipeline fails to be created
|
||||||
|
// Some (unkown) Mali drivers also do not properly return
|
||||||
|
if (result == VK_INCOMPLETE)
|
||||||
|
return Pipeline(object, handle, *dld);
|
||||||
|
Check(result);
|
||||||
return Pipeline(object, handle, *dld);
|
return Pipeline(object, handle, *dld);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue