mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 04:30:10 +01:00
aco: Fix workgroup_id.y and .z for NV_mesh_shader.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15034>
This commit is contained in:
parent
10ebfb3bf2
commit
082b691141
1 changed files with 2 additions and 2 deletions
|
|
@ -8141,8 +8141,8 @@ visit_intrinsic(isel_context* ctx, nir_intrinsic_instr* instr)
|
|||
Temp base_arg = get_arg(ctx, ctx->args->ac.base_vertex);
|
||||
Temp idx = bld.vop1(aco_opcode::v_readfirstlane_b32, bld.def(s1), idx_arg);
|
||||
Temp workgroup_index = bld.sop2(aco_opcode::s_add_u32, bld.def(s1), bld.def(s1, scc), idx, base_arg);
|
||||
Temp one = bld.copy(bld.def(s1), Operand::c32(1));
|
||||
Temp workgroup_ids[3] = {workgroup_index, one, one};
|
||||
Temp zero = bld.copy(bld.def(s1), Operand::zero());
|
||||
Temp workgroup_ids[3] = {workgroup_index, zero, zero};
|
||||
create_vec_from_array(ctx, workgroup_ids, 3, RegType::sgpr, 4, 0, dst);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue