Home
last modified time | relevance | path

Searched refs:ac_get_arg (Results 1 – 11 of 11) sorted by relevance

/third_party/mesa3d/src/amd/vulkan/
Dradv_nir_to_llvm.c111 LLVMValueRef desc_sets = ac_get_arg(&ctx->ac, ctx->args->descriptor_sets[0]); in load_descriptor_sets()
123 ctx->descriptor_sets[i] = ac_get_arg(&ctx->ac, ctx->args->descriptor_sets[i]); in load_descriptor_sets()
267 ac_get_arg(&ctx->ac, ctx->args->ac.gs2vs_offset), in visit_emit_vertex_with_counter()
288 return ac_get_arg(&ctx->ac, ctx->args->ac.base_vertex); in radv_load_base_vertex()
391 LLVMValueRef t_list_ptr = ac_get_arg(&ctx->ac, ctx->args->ac.vertex_buffers); in load_vs_input()
421 ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args->ac.start_instance), buffer_index, ""); in load_vs_input()
424 ac_get_arg(&ctx->ac, ctx->args->ac.base_vertex), ""); in load_vs_input()
536 ctx->abi.persp_centroid = ac_get_arg(&ctx->ac, ctx->args->ac.persp_centroid); in prepare_interp_optimize()
537 ctx->abi.linear_centroid = ac_get_arg(&ctx->ac, ctx->args->ac.linear_centroid); in prepare_interp_optimize()
541 LLVMBuildICmp(ctx->ac.builder, LLVMIntSLT, ac_get_arg(&ctx->ac, ctx->args->ac.prim_mask), in prepare_interp_optimize()
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader_llvm_resources.c58 LLVMValueRef ptr = ac_get_arg(&ctx->ac, ctx->const_and_shader_buffers); in load_const_buffer_desc_fast_path()
97 LLVMValueRef ptr = ac_get_arg(&ctx->ac, ctx->const_and_shader_buffers); in load_ubo()
117 return ac_get_arg(&ctx->ac, ctx->cs_shaderbuf[LLVMConstIntGetZExtValue(index)]); in load_ssbo()
119 LLVMValueRef rsrc_ptr = ac_get_arg(&ctx->ac, ctx->const_and_shader_buffers); in load_ssbo()
260 LLVMValueRef list = ac_get_arg(&ctx->ac, ctx->bindless_samplers_and_images); in si_nir_load_sampler_desc()
292 LLVMValueRef list = ac_get_arg(&ctx->ac, ctx->samplers_and_images); in si_nir_load_sampler_desc()
315 LLVMValueRef rsrc = ac_get_arg(&ctx->ac, ctx->cs_image[const_index]); in si_nir_load_sampler_desc()
Dsi_shader_llvm.c247 ctx->abi.vertex_id = ac_get_arg(&ctx->ac, ctx->args.vertex_id); in si_llvm_create_main_func()
248 ctx->abi.instance_id = ac_get_arg(&ctx->ac, ctx->args.instance_id); in si_llvm_create_main_func()
250 ctx->abi.persp_centroid = ac_get_arg(&ctx->ac, ctx->args.persp_centroid); in si_llvm_create_main_func()
251 ctx->abi.linear_centroid = ac_get_arg(&ctx->ac, ctx->args.linear_centroid); in si_llvm_create_main_func()
294 return LLVMBuildInsertValue(ctx->ac.builder, ret, ac_get_arg(&ctx->ac, param), return_index, ""); in si_insert_input_ret()
301 LLVMValueRef p = ac_get_arg(&ctx->ac, param); in si_insert_input_ret_float()
310 LLVMValueRef ptr = ac_get_arg(&ctx->ac, param); in si_insert_input_ptr()
348 ac_get_arg(&ctx->ac, param), in si_init_exec_from_input()
378 LLVMValueRef value = ac_get_arg(&ctx->ac, param); in si_unpack_param()
390 return ac_get_arg(&ctx->ac, ctx->args.vs_prim_id); in si_get_primitive_id()
[all …]
Dsi_shader_llvm_tess.c36 return ac_get_arg(&ctx->ac, ctx->args.tes_rel_patch_id); in si_get_rel_patch_id()
218 LLVMValueRef addr = ac_get_arg( in get_tess_ring_descriptor()
385 tf_base = ac_get_arg(&ctx->ac, ctx->args.tcs_factor_offset); in si_write_tess_factors()
419 base = ac_get_arg(&ctx->ac, ctx->args.tess_offchip_offset); in si_write_tess_factors()
563 ac_to_float(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args.tcs_patch_id)), in si_set_ls_return_value_for_tcs()
566 ac_to_float(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args.tcs_rel_ids)), in si_set_ls_return_value_for_tcs()
660 invoc0_tess_factors[i] = ac_get_arg(&ctx->ac, tess_factors[i]); in si_llvm_build_tcs_epilog()
662 si_write_tess_factors(ctx, key, ac_get_arg(&ctx->ac, rel_patch_id), in si_llvm_build_tcs_epilog()
663 ac_get_arg(&ctx->ac, invocation_id), in si_llvm_build_tcs_epilog()
664 ac_get_arg(&ctx->ac, tcs_out_current_patch_data_offset), in si_llvm_build_tcs_epilog()
Dsi_shader_llvm_gs.c96 return ac_get_arg(&ctx->ac, ctx->args.gs_wave_id); in si_get_gs_wave_id()
101 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in ngg_get_emulated_counters_buf()
178 LLVMValueRef soffset = ac_get_arg(&ctx->ac, ctx->args.gs2vs_offset); in si_llvm_emit_vertex()
265 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in si_preload_esgs_ring()
310 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in si_preload_gs_rings()
437 LLVMValueRef buf_ptr = ac_get_arg(&ctx.ac, ctx.internal_bindings); in si_generate_gs_copy_shader()
Dsi_shader_llvm_vs.c121 vb_desc = ac_get_arg(&ctx->ac, ctx->vb_descriptors[input_index]); in load_input_vs()
124 vb_desc = ac_build_load_to_sgpr(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args.vertex_buffers), in load_input_vs()
342 LLVMValueRef so_write_index = ac_get_arg(&ctx->ac, ctx->args.streamout_write_index); in si_llvm_emit_streamout()
351 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in si_llvm_emit_streamout()
361 LLVMValueRef so_offset = ac_get_arg(&ctx->ac, ctx->args.streamout_offset[i]); in si_llvm_emit_streamout()
392 LLVMValueRef ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in si_llvm_clipvertex_to_clipdist()
757 ac_get_arg(&ctx->ac, ctx->internal_bindings), in si_llvm_build_vs_exports()
762 attr_address = ac_get_arg(&ctx->ac, ctx->gs_attr_address); in si_llvm_build_vs_exports()
908 input_vgprs[i] = ac_get_arg(&ctx->ac, input_vgpr_param[i]); in si_llvm_build_vs_prolog()
Dgfx10_shader_ngg.c68 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in ngg_get_query_buf()
76 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in ngg_get_emulated_counters_buf()
160 prim.passthrough = ac_get_arg(&ctx->ac, ctx->args.gs_vtx_offset[0]); in gfx10_ngg_build_export_prim()
288 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in build_streamout()
748 LLVMValueRef v = ac_get_arg(&ctx->ac, param); in si_insert_input_v4i32()
947 LLVMValueRef ptr = ac_get_arg(&ctx->ac, ctx->small_prim_cull_info); in cull_primitive()
1318 LLVMBuildStore(builder, ac_to_integer(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args.tes_u)), in gfx10_ngg_culling_build_end()
1320 LLVMBuildStore(builder, ac_to_integer(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args.tes_v)), in gfx10_ngg_culling_build_end()
1322 …LLVMBuildStore(builder, LLVMBuildTrunc(builder, ac_get_arg(&ctx->ac, ctx->args.tes_rel_patch_id), … in gfx10_ngg_culling_build_end()
1326 builder, ac_get_arg(&ctx->ac, ctx->args.tes_patch_id), in gfx10_ngg_culling_build_end()
[all …]
Dsi_shader_llvm_ps.c37 LLVMValueRef desc = ac_get_arg(&ctx->ac, ctx->internal_bindings); in load_sample_position()
68 ptr = ac_get_arg(&ctx->ac, ctx->internal_bindings); in si_nir_emit_fbfetch()
801 LLVMValueRef samplemask = ac_get_arg(&ctx->ac, param_sample_mask); in si_llvm_build_ps_prolog()
/third_party/mesa3d/src/amd/llvm/
Dac_nir_to_llvm.c1702 push_constants[i] = ac_get_arg(&ctx->ac, ctx->args->inline_push_consts[arg_index++]); in visit_load_push_constant()
1710 …ptr = LLVMBuildGEP(ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args->push_constants), &addr, 1, ""); in visit_load_push_constant()
3035 … ac_unpack_param(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args->tcs_wave_id), 0, 3), in visit_load_local_invocation_index()
3039 return ac_get_arg(&ctx->ac, ctx->args->vs_rel_patch_id); in visit_load_local_invocation_index()
3042 …LLVMValueRef wave_id = ac_unpack_param(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args->merged_wave_info)… in visit_load_local_invocation_index()
3050 result = LLVMBuildAnd(ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args->tg_size), in visit_load_local_invocation_index()
3063 result = LLVMBuildAnd(ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args->tg_size), in visit_load_subgroup_id()
3067 return ac_unpack_param(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args->merged_wave_info), 24, 4); in visit_load_subgroup_id()
3076 return LLVMBuildAnd(ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args->tg_size), in visit_load_num_subgroups()
3079 return ac_unpack_param(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args->merged_wave_info), 28, 4); in visit_load_num_subgroups()
[all …]
Dac_llvm_build.h578 static inline LLVMValueRef ac_get_arg(struct ac_llvm_context *ctx, struct ac_arg arg) in ac_get_arg() function
Dac_llvm_build.c4441 ac_get_arg(ctx, args->gs_invocation_id), in ac_pack_edgeflags_for_export()