nvk: Fix the NO_PREFETCH assert for CmdDrawIndirect

The NO_PREFETCH bit gets set on the range.  The offset can pretty much
be whatever.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand 2023-05-04 14:32:19 -05:00 committed by Marge Bot
parent e2379a2e87
commit 1ea94caab6

View file

@ -158,7 +158,7 @@ nvk_cmd_buffer_push_indirect_buffer(struct nvk_cmd_buffer *cmd,
/* TODO: The new uAPI should just take addresses */
struct nouveau_ws_bo *bo = buffer->mem->bo;
uint64_t bo_offset = nvk_buffer_address(buffer, offset) - bo->offset;
assert(bo_offset < NVC0_IB_ENTRY_1_NO_PREFETCH);
assert(range < NVC0_IB_ENTRY_1_NO_PREFETCH);
struct nvk_cmd_push push = {
.bo = bo,