From 184084e21c096e10d958372c8745facdf7367396 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 13 Apr 2022 11:08:44 +0300 Subject: [PATCH] anv: allow getting the address of the beginning of the batch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There is no reason not to be able to get it. Signed-off-by: Lionel Landwerlin Fixes: 34a0ce58c7f8 ("anv: add a new execution mode for secondary command buffers") Reviewed-by: Marcin Ślusarz Part-of: --- src/intel/vulkan/anv_batch_chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index 24765f4..9699571 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -298,7 +298,7 @@ anv_batch_emit_dwords(struct anv_batch *batch, int num_dwords) struct anv_address anv_batch_address(struct anv_batch *batch, void *batch_location) { - assert(batch->start < batch_location); + assert(batch->start <= batch_location); /* Allow a jump at the current location of the batch. */ assert(batch->next >= batch_location); -- 2.7.4