From df6dc532d20f17b425f4e8b5a7a44755097fe1e9 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=UTF-8 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: (cherry picked from commit 184084e21c096e10d958372c8745facdf7367396) --- .pick_status.json | 2 +- src/intel/vulkan/anv_batch_chain.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 0acab29a5ba..6afc9f2898a 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -769,7 +769,7 @@ "description": "anv: allow getting the address of the beginning of the batch", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "34a0ce58c7f85ea3ec3f1026469ce06602f38a5b" }, diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index 4043c8417de..c6926158e82 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);