mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 01:40:36 +01:00
vulkan/log: Don't assert on non-client-visible objects
We already have code to deal with non-client-visible objects but we were
asserting if it didn't fall into one of the clearly mappable error
cases. However, we didn't have a mapping for VK_ERROR_NOT_PERMITTED
which can happen during object creation. Let's just be sloppy and drop
the assert. Worst case, the client gets an error with no object.
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>
(cherry picked from commit 116e23e385)
This commit is contained in:
parent
4d28da1f8e
commit
d8715ff19b
2 changed files with 1 additions and 2 deletions
|
|
@ -19372,7 +19372,7 @@
|
|||
"description": "vulkan/log: Don't assert on non-client-visible objects",
|
||||
"nominated": false,
|
||||
"nomination_type": null,
|
||||
"resolution": 4,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -268,7 +268,6 @@ vk_object_for_error(struct vk_object_base *obj, VkResult error)
|
|||
case VK_ERROR_TOO_MANY_OBJECTS:
|
||||
return &vk_object_to_device(obj)->base;
|
||||
default:
|
||||
assert(obj->client_visible);
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue