mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 07:50:11 +01:00
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: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 34a0ce58c7 ("anv: add a new execution mode for secondary command buffers")
Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15968>
This commit is contained in:
parent
2d7d907ad1
commit
184084e21c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue