vulkan/log: Tweak our handling of a couple error enums
VK_ERROR_INITIALIZATION_FAILED can happen as part of device creation and
isn't really an instance error in that case.
VK_ERROR_EXTENSION_NOT_PRESENT, on the other hand, is always an instance
thing and we should handle it as such.
Fixes: 0cad3beb2a ("vulkan/log: Add common vk_error and vk_errorf helpers")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13341>
This commit is contained in:
committed by
Marge Bot
parent
fd46749234
commit
071437d29d
@@ -257,8 +257,8 @@ vk_object_for_error(struct vk_object_base *obj, VkResult error)
|
||||
|
||||
switch (error) {
|
||||
case VK_ERROR_OUT_OF_HOST_MEMORY:
|
||||
case VK_ERROR_INITIALIZATION_FAILED:
|
||||
case VK_ERROR_LAYER_NOT_PRESENT:
|
||||
case VK_ERROR_EXTENSION_NOT_PRESENT:
|
||||
case VK_ERROR_UNKNOWN:
|
||||
return &vk_object_to_instance(obj)->base;
|
||||
case VK_ERROR_FEATURE_NOT_PRESENT:
|
||||
|
||||
Reference in New Issue
Block a user