winevulkan: Adequate vkEnumerateInstanceLayerProperties to the Vulkan spec.
The section for vkEnumerateInstanceLayerProperties states [1]: On success, this command returns * VK_SUCCESS * VK_INCOMPLETE On failure, this command returns * VK_ERROR_OUT_OF_HOST_MEMORY * VK_ERROR_OUT_OF_DEVICE_MEMORY Always setting the layer count to zero and returning VK_SUCCESS is valid, as even if the function is given an array in pProperties, it's filled with zero layers [1]: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkEnumerateInstanceLayerProperties.html Signed-off-by: Victor Hermann Chiletto <v@hnn.net.br> Signed-off-by: Joshua Ashton <joshua@froggi.es> Signed-off-by: Liam Middlebrook <lmiddlebrook@nvidia.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ed44832c7d
commit
dff2f63210
|
@ -1065,13 +1065,8 @@ VkResult WINAPI wine_vkEnumerateInstanceLayerProperties(uint32_t *count, VkLayer
|
||||||
{
|
{
|
||||||
TRACE("%p, %p\n", count, properties);
|
TRACE("%p, %p\n", count, properties);
|
||||||
|
|
||||||
if (!properties)
|
*count = 0;
|
||||||
{
|
return VK_SUCCESS;
|
||||||
*count = 0;
|
|
||||||
return VK_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
return VK_ERROR_LAYER_NOT_PRESENT;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VkResult WINAPI wine_vkEnumerateInstanceVersion(uint32_t *version)
|
VkResult WINAPI wine_vkEnumerateInstanceVersion(uint32_t *version)
|
||||||
|
|
Loading…
Reference in New Issue