From 0f437e49c60f007abf3605cb4438db372f1503a0 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 3 Mar 2021 15:21:55 +0200 Subject: [PATCH] anv: fix missing general state pool in validation list Signed-off-by: Lionel Landwerlin Fixes: 83fee30e85965c ("anv: allow multiple command buffers in anv_queue_submit") Reviewed-by: Jordan Justen Part-of: --- src/intel/vulkan/anv_batch_chain.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index 26144f5..7b7d6ed 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -1647,6 +1647,13 @@ setup_execbuf_for_cmd_buffers(struct anv_execbuf *execbuf, return result; } + pool = &device->general_state_pool.block_pool; + anv_block_pool_foreach_bo(bo, pool) { + result = anv_execbuf_add_bo(device, execbuf, bo, NULL, 0); + if (result != VK_SUCCESS) + return result; + } + pool = &device->instruction_state_pool.block_pool; anv_block_pool_foreach_bo(bo, pool) { result = anv_execbuf_add_bo(device, execbuf, bo, NULL, 0); -- 2.7.4