Module: Mesa
Branch: main
Commit: 88a5146d954b33684e7cf186e3efe10f791e1d0c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=88a5146d954b33684e7cf186e3efe10f791e1d0c

Author: Yiwei Zhang <[email protected]>
Date:   Thu Aug 11 22:38:20 2022 +0000

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17975>

---

 src/virtio/vulkan/vn_feedback.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/virtio/vulkan/vn_feedback.c b/src/virtio/vulkan/vn_feedback.c
index 7e2d1a65950..406aa095969 100644
--- a/src/virtio/vulkan/vn_feedback.c
+++ b/src/virtio/vulkan/vn_feedback.c
@@ -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

Reply via email to