aco: adjust loading local invocation ID for GS on GFX12

It uses gs_vtx_offset[0] instead.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29417>
This commit is contained in:
Samuel Pitoiset 2024-05-27 09:16:13 +02:00 committed by Marge Bot
parent 06598bc707
commit ce6557cc04

View file

@ -9019,7 +9019,11 @@ visit_intrinsic(isel_context* ctx, nir_intrinsic_instr* instr)
Temp dst = get_ssa_temp(ctx, &instr->def);
if (ctx->shader->info.stage == MESA_SHADER_GEOMETRY) {
if (ctx->options->gfx_level >= GFX10)
if (ctx->options->gfx_level >= GFX12)
bld.vop3(aco_opcode::v_bfe_u32, Definition(dst),
get_arg(ctx, ctx->args->gs_vtx_offset[0]), Operand::c32(27u),
Operand::c32(5u));
else if (ctx->options->gfx_level >= GFX10)
bld.vop2_e64(aco_opcode::v_and_b32, Definition(dst), Operand::c32(127u),
get_arg(ctx, ctx->args->gs_invocation_id));
else