mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 16:30:10 +01:00
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:
parent
e2379a2e87
commit
1ea94caab6
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue