Skip to content
Snippets Groups Projects
Commit df6dc532 authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Dylan Baker
Browse files

anv: allow getting the address of the beginning of the batch


There is no reason not to be able to get it.

Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 34a0ce58 ("anv: add a new execution mode for secondary command buffers")
Reviewed-by: default avatarMarcin Ślusarz <marcin.slusarz@intel.com>
Part-of: <mesa/mesa!15968>
(cherry picked from commit 184084e2)
parent c849ae36
No related branches found
No related tags found
No related merge requests found
......@@ -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"
},
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment