/third_party/mesa3d/src/amd/common/ |
D | ac_binary.c | 65 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()
|
D | ac_rtld.c | 312 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()
|
D | ac_binary.h | 43 unsigned lds_size; /* in HW allocation units; i.e 256 bytes on SI, 512 bytes on CI+ */ member
|
D | ac_rtld.h | 73 uint32_t lds_size; member
|
D | ac_rgp.c | 348 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/ |
D | radv_shader.h | 211 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()
|
D | radv_shader.c | 1474 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;
|
D | radv_pipeline.c | 1931 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/ |
D | aco_instruction_selection_setup.cpp | 280 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()
|
D | aco_live_var_analysis.cpp | 381 align(program->config->lds_size * program->dev.lds_encoding_granule, in update_vgpr_sgpr_demand()
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | evergreen_compute.c | 609 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()
|
D | evergreen_state.c | 4542 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/ |
D | si_shader.c | 817 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()
|
D | si_state_draw.cpp | 691 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()
|
D | si_compute.c | 103 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()
|
D | si_shader.h | 905 void si_multiwave_lds_size_workaround(struct si_screen *sscreen, unsigned *lds_size);
|
D | si_shader_llvm.c | 429 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()
|
D | si_state_shaders.c | 931 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/ |
D | ac_llvm_build.c | 2990 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/ |
D | 20.1.0.rst | 4245 - aco: Set config->lds_size when TES or VS is running on HW ESGS.
|
D | 20.2.0.rst | 4477 - radv: remove unnecessary radv_tessellation_state::lds_size
|