Home
last modified time | relevance | path

Searched refs:shared_size (Results 1 – 25 of 46) sorted by relevance

12

/third_party/mesa3d/src/compiler/nir/
Dnir_lower_variable_initializers.c146 const unsigned shared_size, in nir_zero_initialize_shared_memory() argument
149 assert(shared_size > 0); in nir_zero_initialize_shared_memory()
165 assert(shared_size % chunk_size == 0); in nir_zero_initialize_shared_memory()
179 nir_push_if(&b, nir_uge(&b, offset, nir_imm_int(&b, shared_size))); in nir_zero_initialize_shared_memory()
Dnir_lower_task_shader.c132 .task_count_shared_addr = ALIGN(shader->info.shared_size, 4), in nir_lower_nv_task_count()
135 shader->info.shared_size += 4; in nir_lower_nv_task_count()
410 .payload_shared_addr = ALIGN(shader->info.shared_size, 16), in nir_lower_task_shader()
415 shader->info.shared_size = in nir_lower_task_shader()
Dnir_print.c1715 fprintf(fp, "shared-size: %u\n", shader->info.shared_size); in nir_print_shader_annotated()
1727 fprintf(fp, "shared: %u\n", shader->info.shared_size); in nir_print_shader_annotated()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_compute.c72 uint32_t shared_size = MAX2(((int)v->cs.req_local_mem - 1) / 1024, 1); in cs_program_emit() local
74 OUT_RING(ring, A6XX_SP_CS_UNKNOWN_A9B1_SHARED_SIZE(shared_size) | in cs_program_emit()
79 OUT_RING(ring, A6XX_HLSQ_CS_UNKNOWN_B9D0_SHARED_SIZE(shared_size) | in cs_program_emit()
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection_setup.cpp281 DIV_ROUND_UP(nir->info.shared_size, ctx->program->dev.lds_encoding_granule); in setup_vs_variables()
297 DIV_ROUND_UP(nir->info.shared_size, ctx->program->dev.lds_encoding_granule); in setup_gs_variables()
325 DIV_ROUND_UP(nir->info.shared_size, ctx->program->dev.lds_encoding_granule); in setup_tes_variables()
337 DIV_ROUND_UP(nir->info.shared_size, ctx->program->dev.lds_encoding_granule); in setup_ms_variables()
351 DIV_ROUND_UP(nir->info.shared_size, ctx->program->dev.lds_encoding_granule); in setup_variables()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_shader.c791 if (nir->info.zero_initialize_shared_memory && nir->info.shared_size > 0) { in tu_shader_create()
798 const unsigned shared_size = ALIGN(nir->info.shared_size, chunk_size); in tu_shader_create() local
799 NIR_PASS_V(nir, nir_zero_initialize_shared_memory, shared_size, chunk_size); in tu_shader_create()
/third_party/mesa3d/src/microsoft/clc/
Dclc_compiler.c1141 nir->info.shared_size = align(nir->info.shared_size, alignment); in clc_spirv_to_dxil()
1142 metadata->args[i].localptr.sharedmem_offset = nir->info.shared_size; in clc_spirv_to_dxil()
1143 nir->info.shared_size += size; in clc_spirv_to_dxil()
1146 metadata->local_mem_size = nir->info.shared_size; in clc_spirv_to_dxil()
/third_party/mesa3d/src/gallium/drivers/panfrost/
Dpan_job.h117 unsigned shared_size; member
/third_party/mesa3d/src/broadcom/compiler/
Dv3d_nir_lower_robust_buffer_access.c98 nir_imm_int(b, c->s->info.shared_size & 0xfffffffc); in lower_shared()
Dvir.c840 prog_data->shared_size = c->s->info.shared_size; in v3d_cs_set_prog_data()
/third_party/mesa3d/src/compiler/
Dshader_info.h222 unsigned shared_size; member
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_compute.c244 sel->info.base.shared_size = cso->req_local_mem; in si_create_compute_state()
530 lds_blocks += align(program->sel.info.base.shared_size, 256) >> 8; in si_switch_compute_shader()
532 lds_blocks += align(program->sel.info.base.shared_size, 512) >> 9; in si_switch_compute_shader()
681 dispatch.group_segment_size = util_cpu_to_le32(program->sel.info.base.shared_size); in si_setup_user_sgprs_co_v2()
Dsi_shader_llvm.c406 unsigned lds_size = sel->info.base.shared_size; in si_llvm_declare_compute_memory()
921 if (ctx->shader->selector->info.base.shared_size) in si_llvm_translate_nir()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_jit.h454 uint32_t shared_size; member
Dlp_jit.c492 LP_CHECK_MEMBER_OFFSET(struct lp_jit_cs_context, shared_size, in lp_jit_create_cs_types()
Dlp_state_cs.c500 shader->req_local_mem += ((struct nir_shader *)shader->base.ir.nir)->info.shared_size; in llvmpipe_create_compute_state()
504 shader->req_local_mem += ((struct nir_shader *)shader->base.ir.nir)->info.shared_size; in llvmpipe_create_compute_state()
/third_party/mesa3d/src/panfrost/lib/
Dpan_shader.c304 info->wls_size = s->info.shared_size; in GENX()
/third_party/mesa3d/src/intel/vulkan/
Danv_pipeline.c774 nir->info.shared_size > 0) { in anv_pipeline_lower_nir()
780 const unsigned shared_size = ALIGN(nir->info.shared_size, chunk_size); in anv_pipeline_lower_nir() local
781 assert(shared_size <= in anv_pipeline_lower_nir()
782 intel_calculate_slm_size(compiler->devinfo->ver, nir->info.shared_size)); in anv_pipeline_lower_nir()
785 shared_size, chunk_size); in anv_pipeline_lower_nir()
/third_party/mesa3d/src/intel/compiler/
Dbrw_kernel.c399 nir->info.shared_size = 0; in brw_kernel_from_spirv()
Dbrw_mesh.cpp207 prog_data->base.base.total_shared = nir->info.shared_size; in brw_compile_task()
696 prog_data->base.base.total_shared = nir->info.shared_size; in brw_compile_mesh()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_nir.cpp733 if (prog->nir->info.shared_size > ctx->Const.MaxComputeSharedMemorySize) { in st_link_nir()
735 prog->nir->info.shared_size, in st_link_nir()
/third_party/mesa3d/src/amd/vulkan/
Dradv_shader.c1025 if (nir->info.zero_initialize_shared_memory && nir->info.shared_size > 0) { in radv_shader_spirv_to_nir()
1027 const unsigned shared_size = ALIGN(nir->info.shared_size, chunk_size); in radv_shader_spirv_to_nir() local
1028 NIR_PASS(_, nir, nir_zero_initialize_shared_memory, shared_size, chunk_size); in radv_shader_spirv_to_nir()
1344 ngg_stage->info.ngg_info.esgs_ring_size = nir->info.shared_size; in radv_lower_ngg()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_shader.h574 unsigned shared_size; member
/third_party/mesa3d/src/amd/common/
Dac_nir_lower_ngg.c1546 shader->info.shared_size = state.total_lds_bytes; in ac_nir_lower_ngg_nogs()
2053 shader->info.shared_size = total_lds_bytes; in ac_nir_lower_ngg_gs()
3019 … ms_calculate_output_layout(shader->info.shared_size, per_vertex_outputs, per_primitive_outputs, in ac_nir_lower_ngg_ms()
3022 shader->info.shared_size = layout.lds.total_size; in ac_nir_lower_ngg_ms()
/third_party/mesa3d/src/gallium/drivers/v3d/
Dv3dx_draw.c1442 if (v3d->prog.compute->prog_data.compute->shared_size) { in v3d_launch_grid()
1445 v3d->prog.compute->prog_data.compute->shared_size * in v3d_launch_grid()

12