Home
last modified time | relevance | path

Searched refs:lds_size (Results 1 – 21 of 21) sorted by relevance

/third_party/mesa3d/src/amd/common/
Dac_binary.c65 conf->lds_size = MAX2(conf->lds_size, G_00B02C_EXTRA_LDS_SIZE(value)); in ac_parse_shader_binary_config()
83 conf->lds_size = MAX2(conf->lds_size, G_00B84C_LDS_SIZE(value)); in ac_parse_shader_binary_config()
Dac_rtld.c312 binary->lds_size = shared_lds_size; in ac_rtld_open()
392 binary->lds_size = MAX2(binary->lds_size, part_lds_size); in ac_rtld_open()
403 binary->lds_size = align(binary->lds_size, lds_end_align); in ac_rtld_open()
410 lds_end->offset = binary->lds_size; in ac_rtld_open()
414 if (binary->lds_size > max_lds_size) { in ac_rtld_open()
416 (unsigned)binary->lds_size, max_lds_size); in ac_rtld_open()
548 config->lds_size = MAX2(config->lds_size, c.lds_size); in ac_rtld_read_config()
Dac_binary.h43 unsigned lds_size; /* in HW allocation units; i.e 256 bytes on SI, 512 bytes on CI+ */ member
Dac_rtld.h73 uint32_t lds_size; member
Dac_rgp.c348 int32_t lds_size; member
500 chunk->lds_size = rad_info->lds_size_per_workgroup; in ac_sqtt_fill_asic_info()
503 chunk->lds_size /= 2; in ac_sqtt_fill_asic_info()
/third_party/mesa3d/src/amd/vulkan/
Dradv_shader.h211 uint32_t lds_size; member
567 unsigned lds_size = output_patch0_offset + output_patch_size * tcs_num_patches; in calculate_tess_lds_size() local
570 assert(lds_size <= 65536); in calculate_tess_lds_size()
571 lds_size = align(lds_size, 512) / 512; in calculate_tess_lds_size()
573 assert(lds_size <= 32768); in calculate_tess_lds_size()
574 lds_size = align(lds_size, 256) / 256; in calculate_tess_lds_size()
577 return lds_size; in calculate_tess_lds_size()
Dradv_shader.c1474 S_00B84C_LDS_SIZE(config_in->lds_size) | S_00B84C_EXCP_EN(excp_en); in radv_postprocess_config()
1521 S_00B22C_LDS_SIZE(config_in->lds_size) | in radv_postprocess_config()
1620 if (rtld_binary.lds_size > 0) { in radv_shader_variant_create()
1622 config.lds_size = align(rtld_binary.lds_size, encode_granularity) / encode_granularity; in radv_shader_variant_create()
1624 if (!config.lds_size && binary->stage == MESA_SHADER_TESS_CTRL) { in radv_shader_variant_create()
1626 config.lds_size = binary->info.tcs.num_lds_blocks; in radv_shader_variant_create()
2093 conf->lds_size * info->lds_encode_granularity + variant->info.ps.num_interp * 48;
2098 align(conf->lds_size * info->lds_encode_granularity, info->lds_alloc_granularity);
2225 statistics.resourceUsage.ldsUsageSizeInBytes = conf->lds_size * lds_multiplier;
Dradv_pipeline.c1931 out->lds_size = align(esgs_lds_size, 128) / 128; in gfx9_get_gs_info()
4857 radeon_emit(cs, gs->config.rsrc2 | S_00B22C_LDS_SIZE(gs_state->lds_size)); in radv_pipeline_generate_hw_gs()
6042 s->value.u64 = shader->config.lds_size * lds_increment; in radv_GetPipelineExecutableStatisticsKHR()
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection_setup.cpp280 ctx->program->config->lds_size = in setup_vs_variables()
282 assert((ctx->program->config->lds_size * ctx->program->dev.lds_encoding_granule) < in setup_vs_variables()
291 ctx->program->config->lds_size = in setup_gs_variables()
292 ctx->program->info->gs_ring_info.lds_size; /* Already in units of the alloc granularity */ in setup_gs_variables()
296 ctx->program->config->lds_size = in setup_gs_variables()
307 ctx->program->config->lds_size = ctx->args->shader_info->tcs.num_lds_blocks; in setup_tcs_info()
324 ctx->program->config->lds_size = in setup_tes_variables()
326 assert((ctx->program->config->lds_size * ctx->program->dev.lds_encoding_granule) < in setup_tes_variables()
339 ctx->program->config->lds_size = in setup_variables()
362 assert((ctx->program->config->lds_size * ctx->program->dev.lds_encoding_granule) <= in setup_variables()
Daco_live_var_analysis.cpp381 align(program->config->lds_size * program->dev.lds_encoding_granule, in update_vgpr_sgpr_demand()
/third_party/mesa3d/src/gallium/drivers/r600/
Devergreen_compute.c609 unsigned lds_size = shader->local_size / 4; in evergreen_emit_dispatch() local
613 lds_size += shader->bc.nlds_dw; in evergreen_emit_dispatch()
631 num_pipes, num_waves, lds_size); in evergreen_emit_dispatch()
649 assert(lds_size <= 8192); in evergreen_emit_dispatch()
653 assert(lds_size <= 8160); in evergreen_emit_dispatch()
657 lds_size | (num_waves << 14)); in evergreen_emit_dispatch()
Devergreen_state.c4542 unsigned output_patch0_offset, perpatch_output_offset, lds_size; in evergreen_setup_tess_constants() local
4591 lds_size = output_patch0_offset + output_patch_size * *num_patches; in evergreen_setup_tess_constants()
4607 rctx->lds_alloc = (lds_size | (num_waves << 14)); in evergreen_setup_tess_constants()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader.c817 if (rtld->lds_size > 0) { in si_shader_binary_open()
819 shader->config.lds_size = align(rtld->lds_size, alloc_granularity) / alloc_granularity; in si_shader_binary_open()
978 lds_per_wave = conf->lds_size * lds_increment + align(num_inputs * 48, lds_increment); in si_calculate_max_simd_waves()
982 lds_per_wave = (conf->lds_size * lds_increment) / in si_calculate_max_simd_waves()
1023 conf->lds_size, conf->scratch_bytes_per_wave, shader->info.max_simd_waves, in si_shader_dump_stats_for_shader_db()
1055 conf->lds_size, conf->scratch_bytes_per_wave, shader->info.max_simd_waves); in si_shader_dump_stats()
1954 void si_multiwave_lds_size_workaround(struct si_screen *sscreen, unsigned *lds_size) in si_multiwave_lds_size_workaround() argument
1966 *lds_size = MAX2(*lds_size, 8); in si_multiwave_lds_size_workaround()
1977 si_multiwave_lds_size_workaround(sscreen, &shader->config.lds_size); in si_fix_resource_usage()
Dsi_state_draw.cpp691 unsigned lds_size = lds_per_patch * *num_patches; in si_emit_derived_tess_state() local
694 assert(lds_size <= 65536); in si_emit_derived_tess_state()
695 lds_size = align(lds_size, 512) / 512; in si_emit_derived_tess_state()
697 assert(lds_size <= 32768); in si_emit_derived_tess_state()
698 lds_size = align(lds_size, 256) / 256; in si_emit_derived_tess_state()
708 assert(ls_current->config.lds_size == 0); in si_emit_derived_tess_state()
717 hs_rsrc2 |= S_00B42C_LDS_SIZE_GFX10(lds_size); in si_emit_derived_tess_state()
719 hs_rsrc2 |= S_00B42C_LDS_SIZE_GFX9(lds_size); in si_emit_derived_tess_state()
732 si_multiwave_lds_size_workaround(sctx->screen, &lds_size); in si_emit_derived_tess_state()
733 ls_rsrc2 |= S_00B52C_LDS_SIZE(lds_size); in si_emit_derived_tess_state()
Dsi_compute.c103 out_config->lds_size = MAX2(out_config->lds_size, G_00B84C_LDS_SIZE(rsrc2)); in code_object_to_config()
215 S_00B84C_LDS_SIZE(shader->config.lds_size); in si_create_compute_state_async()
497 lds_blocks = config->lds_size; in si_switch_compute_shader()
Dsi_shader.h905 void si_multiwave_lds_size_workaround(struct si_screen *sscreen, unsigned *lds_size);
Dsi_shader_llvm.c429 unsigned lds_size = sel->info.base.shared_size; in si_llvm_declare_compute_memory() local
436 var = LLVMAddGlobalInAddressSpace(ctx->ac.module, LLVMArrayType(ctx->ac.i8, lds_size), in si_llvm_declare_compute_memory()
Dsi_state_shaders.c931 S_00B22C_LDS_SIZE(shader->config.lds_size) | in si_shader_gs()
1233 S_00B22C_LDS_SIZE(shader->config.lds_size)); in gfx10_shader_ngg()
1744 S_00B02C_EXTRA_LDS_SIZE(shader->config.lds_size) | in si_shader_ps()
/third_party/mesa3d/src/amd/llvm/
Dac_llvm_build.c2990 unsigned lds_size = ctx->chip_class >= GFX7 ? 65536 : 32768; in ac_declare_lds_as_pointer() local
2993 LLVMPointerType(LLVMArrayType(ctx->i32, lds_size / 4), AC_ADDR_SPACE_LDS), "lds"); in ac_declare_lds_as_pointer()
/third_party/mesa3d/docs/relnotes/
D20.1.0.rst4245 - aco: Set config->lds_size when TES or VS is running on HW ESGS.
D20.2.0.rst4477 - radv: remove unnecessary radv_tessellation_state::lds_size