mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 23:10:23 +01:00
ac/nir: inline ac_get_ptr_arg
so that we can get rid of ac_get_ptr_args. RADV uses AC_ARG_CONST_PTR for num_work_groups, which maps to i8, which seems wrong. No functional change. Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36696>
This commit is contained in:
parent
4edcd8a87f
commit
dbefe0c26d
1 changed files with 5 additions and 2 deletions
|
|
@ -2761,8 +2761,11 @@ static bool visit_intrinsic(struct ac_nir_context *ctx, nir_intrinsic_instr *ins
|
|||
if (ctx->abi->load_grid_size_from_user_sgpr) {
|
||||
result = ac_get_arg(&ctx->ac, ctx->args->num_work_groups);
|
||||
} else {
|
||||
result = ac_build_load_invariant(&ctx->ac,
|
||||
ac_get_ptr_arg(&ctx->ac, ctx->args, ctx->args->num_work_groups), ctx->ac.i32_0);
|
||||
struct ac_llvm_pointer ptr;
|
||||
ptr.pointee_type = ctx->ac.v3i32;
|
||||
ptr.value = ac_get_arg(&ctx->ac, ctx->args->num_work_groups);
|
||||
|
||||
result = ac_build_load_invariant(&ctx->ac, ptr, ctx->ac.i32_0);
|
||||
}
|
||||
break;
|
||||
case nir_intrinsic_load_subgroup_id:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue