There are the drivers in the wild that will allow returning VK_NULL_HANDLE with VK_SUCCESS status for vkCreate* where Vk* is dispatchable object, for example VkDevice.
The behavior from the driver is driven by the assumption that if the failure is in non-spec'd error, driver is free to ignore the errors and return VK_SUCCESS, even if VK_NULL_HANDLE is being returned for the object not correctly created.
Aside from the discussion if this behavior is correct or not, the loader shouldn't crash on that. Right now, on VK_SUCCESS it's trying to initialize dispatchable handle on VK_NULL_HANDLE, and causes Exception Access Violation.
I will post the fix for the crash in a moment, but I'd like to open the issue for the discussion if:
a) Loader should just pass returned VK_NULL to the application OR
b) Loader is free to translate it to VK_ERROR_UNKNOWN or something similar.
I'll start with the (a), but I think (b) is more viable, even though it's also more intrusive.
@charles-lunarg, WDYT?
There are the drivers in the wild that will allow returning VK_NULL_HANDLE with VK_SUCCESS status for vkCreate* where Vk* is dispatchable object, for example VkDevice.
The behavior from the driver is driven by the assumption that if the failure is in non-spec'd error, driver is free to ignore the errors and return VK_SUCCESS, even if VK_NULL_HANDLE is being returned for the object not correctly created.
Aside from the discussion if this behavior is correct or not, the loader shouldn't crash on that. Right now, on VK_SUCCESS it's trying to initialize dispatchable handle on VK_NULL_HANDLE, and causes Exception Access Violation.
I will post the fix for the crash in a moment, but I'd like to open the issue for the discussion if:
a) Loader should just pass returned VK_NULL to the application OR
b) Loader is free to translate it to VK_ERROR_UNKNOWN or something similar.
I'll start with the (a), but I think (b) is more viable, even though it's also more intrusive.
@charles-lunarg, WDYT?