/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_shader_llvm_resources.c | 58 LLVMValueRef ptr = ac_get_arg(&ctx->ac, ctx->const_and_shader_buffers); in load_const_buffer_desc_fast_path() 96 LLVMValueRef ptr = ac_get_arg(&ctx->ac, ctx->const_and_shader_buffers); in load_ubo() 116 return ac_get_arg(&ctx->ac, ctx->cs_shaderbuf[LLVMConstIntGetZExtValue(index)]); in load_ssbo() 118 LLVMValueRef rsrc_ptr = ac_get_arg(&ctx->ac, ctx->const_and_shader_buffers); in load_ssbo() 233 LLVMValueRef list = ac_get_arg(&ctx->ac, ctx->bindless_samplers_and_images); in si_nir_load_sampler_desc() 262 LLVMValueRef list = ac_get_arg(&ctx->ac, ctx->samplers_and_images); in si_nir_load_sampler_desc() 285 return ac_get_arg(&ctx->ac, ctx->cs_image[const_index]); in si_nir_load_sampler_desc()
|
D | si_shader_llvm_tess.c | 36 return ac_get_arg(&ctx->ac, ctx->tes_rel_patch_id); in get_rel_patch_id() 342 LLVMValueRef addr = ac_get_arg( in get_tess_ring_descriptor() 443 base = ac_get_arg(&ctx->ac, ctx->tcs_offchip_offset); in si_nir_load_input_tes() 512 base = ac_get_arg(&ctx->ac, ctx->tcs_offchip_offset); in si_nir_store_output_tcs() 558 LLVMValueRef coord[4] = {ac_get_arg(&ctx->ac, ctx->tes_u), ac_get_arg(&ctx->ac, ctx->tes_v), in si_load_tess_coord() 575 base = ac_get_arg(&ctx->ac, ctx->tcs_offchip_offset); in load_tess_level() 588 buf = ac_get_arg(&ctx->ac, ctx->rw_buffers); in load_tess_level_default() 654 buffer_offset = ac_get_arg(&ctx->ac, ctx->tcs_offchip_offset); in si_copy_tcs_inputs() 775 tf_base = ac_get_arg(&ctx->ac, ctx->tcs_factor_offset); in si_write_tess_factors() 807 base = ac_get_arg(&ctx->ac, ctx->tcs_offchip_offset); in si_write_tess_factors() [all …]
|
D | si_shader_llvm.c | 233 return LLVMBuildInsertValue(ctx->ac.builder, ret, ac_get_arg(&ctx->ac, param), return_index, ""); in si_insert_input_ret() 240 LLVMValueRef p = ac_get_arg(&ctx->ac, param); in si_insert_input_ret_float() 249 LLVMValueRef ptr = ac_get_arg(&ctx->ac, param); in si_insert_input_ptr() 300 ac_get_arg(&ctx->ac, param), in si_init_exec_from_input() 330 LLVMValueRef value = ac_get_arg(&ctx->ac, param); in si_unpack_param() 342 return ac_get_arg(&ctx->ac, ctx->vs_prim_id); in si_get_primitive_id() 344 return ac_get_arg(&ctx->ac, ctx->args.tcs_patch_id); in si_get_primitive_id() 346 return ac_get_arg(&ctx->ac, ctx->args.tes_patch_id); in si_get_primitive_id() 348 return ac_get_arg(&ctx->ac, ctx->args.gs_prim_id); in si_get_primitive_id() 360 return ac_get_arg(&ctx->ac, ctx->block_size); in si_llvm_get_block_size() [all …]
|
D | si_compute_prim_discard.c | 367 vs_params[num_vs_params++] = ac_get_arg(&ctx->ac, param_const_desc); in si_build_prim_discard_compute_shader() 368 vs_params[num_vs_params++] = ac_get_arg(&ctx->ac, param_sampler_desc); in si_build_prim_discard_compute_shader() 371 vs_params[num_vs_params++] = ac_get_arg(&ctx->ac, param_base_vertex); in si_build_prim_discard_compute_shader() 372 vs_params[num_vs_params++] = ac_get_arg(&ctx->ac, param_start_instance); in si_build_prim_discard_compute_shader() 374 vs_params[num_vs_params++] = ac_get_arg(&ctx->ac, param_vb_desc); in si_build_prim_discard_compute_shader() 388 ac_get_arg(&ctx->ac, param_index_buffers_and_constants); in si_build_prim_discard_compute_shader() 400 LLVMValueRef global_thread_id = ac_build_imad(&ctx->ac, ac_get_arg(&ctx->ac, param_block_id), in si_build_prim_discard_compute_shader() 402 ac_get_arg(&ctx->ac, param_local_id)); in si_build_prim_discard_compute_shader() 407 LLVMValueRef num_prims_udiv_terms = ac_get_arg(&ctx->ac, param_num_prims_udiv_terms); in si_build_prim_discard_compute_shader() 409 ac_get_arg(&ctx->ac, param_num_prims_udiv_multiplier); in si_build_prim_discard_compute_shader() [all …]
|
D | si_shader_llvm_gs.c | 87 LLVMValueRef gs_vtx_offset = ac_get_arg(&ctx->ac, ctx->gs_vtx_offset[vtx_offset_param]); in si_llvm_load_input_gs() 196 ac_get_arg(&ctx->ac, ctx->es2gs_offset), in si_llvm_emit_es_epilogue() 210 return ac_get_arg(&ctx->ac, ctx->gs_wave_id); in si_get_gs_wave_id() 252 LLVMValueRef soffset = ac_get_arg(&ctx->ac, ctx->gs2vs_offset); in si_llvm_emit_vertex() 335 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->rw_buffers); in si_preload_esgs_ring() 354 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->rw_buffers); in si_preload_gs_rings() 456 LLVMValueRef buf_ptr = ac_get_arg(&ctx.ac, ctx.rw_buffers); in si_generate_gs_copy_shader() 643 vtx_in[i] = ac_get_arg(&ctx->ac, gfx6_vtx_params[i]); in si_llvm_build_gs_prolog()
|
D | si_shader_llvm_vs.c | 105 vb_desc = ac_get_arg(&ctx->ac, ctx->vb_descriptors[input_index]); in load_input_vs() 108 vb_desc = ac_build_load_to_sgpr(&ctx->ac, ac_get_arg(&ctx->ac, ctx->vertex_buffers), in load_input_vs() 322 LLVMValueRef so_write_index = ac_get_arg(&ctx->ac, ctx->streamout_write_index); in si_llvm_emit_streamout() 331 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->rw_buffers); in si_llvm_emit_streamout() 341 LLVMValueRef so_offset = ac_get_arg(&ctx->ac, ctx->streamout_offset[i]); in si_llvm_emit_streamout() 372 LLVMValueRef ptr = ac_get_arg(&ctx->ac, ctx->rw_buffers); in si_llvm_emit_clipvertex() 509 LLVMValueRef cond = ac_get_arg(&ctx->ac, ctx->vs_state_bits); in si_vertex_color_clamping() 818 input_vgprs[i] = ac_get_arg(&ctx->ac, input_vgpr_param[i]); in si_llvm_build_vs_prolog() 995 LLVMValueRef vs_state = ac_get_arg(&ctx->ac, ctx->vs_state_bits); in get_base_vertex() 1001 return LLVMBuildSelect(ctx->ac.builder, indexed, ac_get_arg(&ctx->ac, ctx->args.base_vertex), in get_base_vertex()
|
D | gfx10_shader_ngg.c | 67 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->rw_buffers); in ngg_get_query_buf() 77 tmp = LLVMBuildLShr(ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args.gs_invocation_id), in ngg_get_initial_edgeflag() 151 prim.passthrough = ac_get_arg(&ctx->ac, ctx->gs_vtx01_offset); in gfx10_ngg_build_export_prim() 272 LLVMValueRef buf_ptr = ac_get_arg(&ctx->ac, ctx->rw_buffers); in build_streamout() 642 LLVMValueRef v = ac_get_arg(&ctx->ac, param); in si_insert_input_v4i32() 847 vtxindex[0] = ac_get_arg(&ctx->ac, ctx->gs_vtx01_offset); in gfx10_emit_ngg_culling_epilogue() 848 vtxindex[1] = ac_get_arg(&ctx->ac, ctx->gs_vtx23_offset); in gfx10_emit_ngg_culling_epilogue() 849 vtxindex[2] = ac_get_arg(&ctx->ac, ctx->gs_vtx45_offset); in gfx10_emit_ngg_culling_epilogue() 888 &ctx->ac, ac_get_arg(&ctx->ac, ctx->small_prim_cull_info), ctx->ac.i32_0); in gfx10_emit_ngg_culling_epilogue() 1003 LLVMBuildStore(builder, ac_to_integer(&ctx->ac, ac_get_arg(&ctx->ac, ctx->tes_u)), in gfx10_emit_ngg_culling_epilogue() [all …]
|
D | si_shader_llvm_ps.c | 37 return ac_to_integer(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args.sample_coverage)); in load_sample_mask_in() 43 LLVMValueRef desc = ac_get_arg(&ctx->ac, ctx->rw_buffers); in load_sample_position() 72 ptr = ac_get_arg(&ctx->ac, ctx->rw_buffers); in si_nir_emit_fbfetch() 845 LLVMValueRef samplemask = ac_get_arg(&ctx->ac, param_sample_mask); in si_llvm_build_ps_prolog()
|
D | si_shader.c | 769 ctx->abi.vertex_id = ac_get_arg(&ctx->ac, ctx->args.vertex_id); in si_create_function() 770 ctx->abi.instance_id = ac_get_arg(&ctx->ac, ctx->args.instance_id); in si_create_function() 772 ctx->abi.persp_centroid = ac_get_arg(&ctx->ac, ctx->args.persp_centroid); in si_create_function() 773 ctx->abi.linear_centroid = ac_get_arg(&ctx->ac, ctx->args.linear_centroid); in si_create_function()
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_nir_to_llvm.c | 108 ac_get_arg(&ctx->ac, ctx->args->ac.tcs_rel_ids), in get_rel_patch_id() 111 return ac_get_arg(&ctx->ac, ctx->args->tes_rel_patch_id); in get_rel_patch_id() 263 ac_get_arg(&ctx->ac, ctx->args->descriptor_sets[0]); in load_descriptor_sets() 277 ac_get_arg(&ctx->ac, ctx->args->descriptor_sets[i]); in load_descriptor_sets() 364 desc_ptr = ac_get_arg(&ctx->ac, ctx->args->ac.push_constants); in radv_load_resource() 561 LLVMValueRef oc_lds = ac_get_arg(&ctx->ac, ctx->args->oc_lds); in store_tcs_output() 627 LLVMValueRef oc_lds = ac_get_arg(&ctx->ac, ctx->args->oc_lds); in load_tes_input() 750 sample_id = ac_unpack_param(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args->ac.ancillary), 8, 4); in load_sample_mask_in() 753 ac_get_arg(&ctx->ac, ctx->args->ac.sample_coverage), ""); in load_sample_mask_in() 755 result = ac_get_arg(&ctx->ac, ctx->args->ac.sample_coverage); in load_sample_mask_in() [all …]
|
/external/mesa3d/src/amd/llvm/ |
D | ac_nir_to_llvm.c | 1528 push_constants[i] = ac_get_arg(&ctx->ac, ctx->args->inline_push_consts[i]); in visit_load_push_constant() 1534 LLVMBuildGEP(ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args->push_constants), &addr, 1, ""); in visit_load_push_constant() 2829 result = LLVMBuildAnd(ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args->tg_size), in visit_load_local_invocation_index() 2842 result = LLVMBuildAnd(ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args->tg_size), in visit_load_subgroup_id() 2853 return LLVMBuildAnd(ctx->ac.builder, ac_get_arg(&ctx->ac, ctx->args->tg_size), in visit_load_num_subgroups() 2995 pos[0] = ac_to_float(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args->frag_pos[0])); in load_sample_pos() 2996 pos[1] = ac_to_float(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args->frag_pos[1])); in load_sample_pos() 3013 return ac_get_arg(&ctx->ac, ctx->args->persp_center); in lookup_interp_param() 3017 return ac_get_arg(&ctx->ac, ctx->args->persp_sample); in lookup_interp_param() 3021 return ac_get_arg(&ctx->ac, ctx->args->linear_center); in lookup_interp_param() [all …]
|
D | ac_llvm_build.h | 576 static inline LLVMValueRef ac_get_arg(struct ac_llvm_context *ctx, struct ac_arg arg) in ac_get_arg() function
|