venus: avoid pre-allocating the feedback pool

Now that we don't create fence upon device creation, let's also defer
the feedback pool grow to the first event or non-external fence
creation. This makes venus device creation lighter and is good for CI.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17975>
This commit is contained in:
Yiwei Zhang 2022-08-11 22:38:20 +00:00 committed by Marge Bot
parent 81b44b4931
commit 88a5146d95

View file

@ -169,8 +169,7 @@ vn_feedback_pool_init(struct vn_device *dev,
list_inithead(&pool->feedback_buffers);
list_inithead(&pool->free_slots);
/* no lock needed upon init */
return vn_feedback_pool_grow_locked(pool);
return VK_SUCCESS;
}
void