mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 02:40:25 +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> (cherry picked from commit01a0bfc3f9)
This commit is contained in:
parent
2fcda40ea4
commit
e4c8e591cc
2 changed files with 3 additions and 3 deletions
|
|
@ -562,7 +562,7 @@
|
|||
"description": "venus: fix a bug on buffer cache init failure path",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "65abd1d4aed48365f0054279616dc31a817b2be0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -92,8 +92,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