mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
venus: fix a bug on buffer cache init failure path
The failure path was never hit though, and will not either.
Fixes: 65abd1d4ae ("venus: implement vn_buffer_cache_entries_create")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16731>
This commit is contained in:
parent
b91511b9a8
commit
01a0bfc3f9
1 changed files with 2 additions and 2 deletions
|
|
@ -124,8 +124,8 @@ vn_buffer_cache_entries_create(struct vn_device *dev,
|
|||
if (buf->requirements.memory.memoryRequirements.alignment <
|
||||
buf->requirements.memory.memoryRequirements.size) {
|
||||
vk_free(alloc, entries);
|
||||
*out_entries = entries;
|
||||
*out_entry_count = entry_count;
|
||||
*out_entries = NULL;
|
||||
*out_entry_count = 0;
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue