mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
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:
parent
06598bc707
commit
ce6557cc04
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue