From 965503ae220ba5a7bc6208d909f015a4315caa59 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 2 Jun 2023 10:02:29 +0300 Subject: [PATCH] anv: allow binding tables allocations on compute only queues COMPUTE_WALKER is using binding tables. Signed-off-by: Lionel Landwerlin Fixes: eb2b309328 ("anv: defer binding table block allocation to when necessary") Reviewed-by: Sagar Ghuge Reviewed-by: Kenneth Graunke Part-of: --- src/intel/vulkan/anv_batch_chain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index 1880e63e72e..a25f9cc4f18 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -425,8 +425,9 @@ anv_cmd_buffer_current_generation_batch_bo(struct anv_cmd_buffer *cmd_buffer) struct anv_address anv_cmd_buffer_surface_base_address(struct anv_cmd_buffer *cmd_buffer) { - /* Compute only queues don't need binding tables. */ - if (!(cmd_buffer->queue_family->queueFlags & VK_QUEUE_GRAPHICS_BIT)) + /* Only graphics & compute queues need binding tables. */ + if (!(cmd_buffer->queue_family->queueFlags & (VK_QUEUE_GRAPHICS_BIT | + VK_QUEUE_COMPUTE_BIT))) return ANV_NULL_ADDRESS; /* If we've never allocated a binding table block, do it now. Otherwise we