mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
anv: Add support for non-zero firstTask in vkCmdDrawMeshTasksNV
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13662>
This commit is contained in:
parent
97da3e0814
commit
f12f5ae2f8
1 changed files with 5 additions and 2 deletions
|
|
@ -4857,12 +4857,15 @@ genX(CmdDrawMeshTasksNV)(
|
|||
if (cmd_buffer->state.conditional_render_enabled)
|
||||
genX(cmd_emit_conditional_render_predicate)(cmd_buffer);
|
||||
|
||||
/* TODO(mesh): Support non-zero firstTask. */
|
||||
assert(firstTask == 0);
|
||||
/* BSpec 54016 says: "The values passed for Starting ThreadGroup ID X
|
||||
* and ThreadGroup Count X shall not cause TGIDs to exceed (2^32)-1."
|
||||
*/
|
||||
assert((int64_t)firstTask + taskCount - 1 <= UINT32_MAX);
|
||||
|
||||
anv_batch_emit(&cmd_buffer->batch, GENX(3DMESH_1D), m) {
|
||||
m.PredicateEnable = cmd_buffer->state.conditional_render_enabled;
|
||||
m.ThreadGroupCountX = taskCount;
|
||||
m.StartingThreadGroupIDX = firstTask;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue