Home
last modified time | relevance | path

Searched refs:num_vgprs (Results 1 – 20 of 20) sorted by relevance

/third_party/mesa3d/src/amd/common/
Dac_binary.c55 conf->num_vgprs = MAX2(conf->num_vgprs, (G_00B028_VGPRS(value) + 1) * 8); in ac_parse_shader_binary_config()
57 conf->num_vgprs = MAX2(conf->num_vgprs, (G_00B028_VGPRS(value) + 1) * 4); in ac_parse_shader_binary_config()
136 conf->num_vgprs = align(conf->num_vgprs, wave_size == 32 ? 16 : 8); in ac_parse_shader_binary_config()
Dac_binary.h39 unsigned num_vgprs; member
Dac_rtld.c532 config->num_vgprs = MAX2(config->num_vgprs, c.num_vgprs); in ac_rtld_read_config()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_shader.c564 unsigned num_user_sgprs, num_vgprs; in si_init_shader_args() local
588 num_vgprs = ngg_cull_shader ? 9 : 5; in si_init_shader_args()
593 for (i = 0; i < num_vgprs; i++) in si_init_shader_args()
995 if (conf->num_vgprs) { in si_calculate_max_simd_waves()
999 max_simd_waves = MIN2(max_simd_waves, max_vgprs / conf->num_vgprs); in si_calculate_max_simd_waves()
1022 conf->num_sgprs, conf->num_vgprs, si_get_shader_binary_size(screen, shader), in si_shader_dump_stats_for_shader_db()
1053 conf->num_sgprs, conf->num_vgprs, conf->spilled_sgprs, conf->spilled_vgprs, in si_shader_dump_stats()
1492 if (shader->config.num_sgprs > max_sgprs || shader->config.num_vgprs > max_vgprs) { in si_compile_shader()
1496 shader->config.num_sgprs, shader->config.num_vgprs, max_sgprs, max_vgprs); in si_compile_shader()
2058 shader->config.num_vgprs = MAX2(shader->config.num_vgprs, shader->info.num_input_vgprs); in si_create_shader_variant()
[all …]
Dsi_shader_llvm_gs.c554 unsigned num_sgprs, num_vgprs; in si_llvm_build_gs_prolog() local
564 num_vgprs = 5; /* ES inputs are not needed by GS */ in si_llvm_build_gs_prolog()
567 num_vgprs = 8; in si_llvm_build_gs_prolog()
575 for (unsigned i = 0; i < num_vgprs; ++i) { in si_llvm_build_gs_prolog()
581 si_llvm_create_func(ctx, "gs_prolog", returns, num_sgprs + num_vgprs, 0); in si_llvm_build_gs_prolog()
592 for (unsigned i = 0; i < num_vgprs; i++) { in si_llvm_build_gs_prolog()
Dsi_shader_llvm.c534 unsigned num_sgprs, num_vgprs; in si_build_wrapper_function() local
550 num_vgprs = 0; in si_build_wrapper_function()
559 assert(num_vgprs == 0); in si_build_wrapper_function()
562 num_vgprs += ac_get_type_size(LLVMTypeOf(param)) / 4; in si_build_wrapper_function()
567 while (gprs < num_sgprs + num_vgprs) { in si_build_wrapper_function()
597 assert(gprs + size <= num_sgprs + num_vgprs && in si_build_wrapper_function()
Dsi_state_shaders.c542 shader->config.rsrc1 = S_00B528_VGPRS((shader->config.num_vgprs - 1) / 4) | in si_shader_ls()
589 S_00B428_VGPRS((shader->config.num_vgprs - 1) / (sscreen->ge_wave_size == 32 ? 8 : 4)) | in si_shader_hs()
658 S_00B328_VGPRS((shader->config.num_vgprs - 1) / 4) | in si_shader_es()
923 uint32_t rsrc1 = S_00B228_VGPRS((shader->config.num_vgprs - 1) / 4) | S_00B228_DX10_CLAMP(1) | in si_shader_gs()
970 S_00B228_VGPRS((shader->config.num_vgprs - 1) / 4) | in si_shader_gs()
1220 S_00B228_VGPRS((shader->config.num_vgprs - 1) / (wave_size == 32 ? 8 : 4)) | in gfx10_shader_ngg()
1514 S_00B128_VGPRS((shader->config.num_vgprs - 1) / (sscreen->ge_wave_size == 32 ? 8 : 4)) | in si_shader_vs()
1734 S_00B028_VGPRS((shader->config.num_vgprs - 1) / (sscreen->ps_wave_size == 32 ? 8 : 4)) | in si_shader_ps()
Dsi_compute.c100 out_config->num_vgprs = code_object->workitem_vgpr_count; in code_object_to_config()
195 shader->config.rsrc1 = S_00B848_VGPRS((shader->config.num_vgprs - 1) / in si_create_compute_state_async()
Dgfx10_shader_ngg.c1270 unsigned num_vgprs = uses_tes_prim_id ? 4 : 3; in gfx10_emit_ngg_culling_epilogue() local
1271 for (unsigned i = 0; i < num_vgprs; i++) { in gfx10_emit_ngg_culling_epilogue()
1275 if (num_vgprs == 3) in gfx10_emit_ngg_culling_epilogue()
Dsi_sqtt.c1012 record->shader_data[gl_shader_stage].vgpr_count = shader->config.num_vgprs; in si_sqtt_add_code_object()
/third_party/mesa3d/src/amd/compiler/
Daco_interface.cpp304 prolog_binary->num_vgprs = config.num_vgprs; in aco_compile_vs_prolog()
Daco_validate.cpp878 op.physReg().reg_b + op.bytes() > (256 + program->config->num_vgprs) * 4) || in validate_ra()
907 def.physReg().reg_b + def.bytes() > (256 + program->config->num_vgprs) * 4) || in validate_ra()
Daco_instruction_selection.cpp11983 unsigned num_vgprs = attributes_start.reg() - 256; in select_vs_prolog() local
11984 num_vgprs += key->num_attributes * 4; in select_vs_prolog()
11986 num_vgprs++; /* make space for nontrivial_tmp_vgpr1 */ in select_vs_prolog()
12143 program->config->num_vgprs = get_vgpr_alloc(program, num_vgprs); in select_vs_prolog()
Daco_register_allocation.cpp2875 program->config->num_vgprs = get_vgpr_alloc(program, ctx.max_used_vgpr + 1); in register_allocation()
Daco_lower_to_hw_instr.cpp853 unsigned shared_vgpr_reg_0 = align(program->config->num_vgprs, 4) + 256; in emit_gfx10_wave64_bpermute()
/third_party/mesa3d/src/amd/vulkan/
Dradv_shader.c1335 unsigned num_vgprs = MAX2(config_in->num_vgprs, num_input_vgprs); in radv_postprocess_config() local
1346 config_out->num_vgprs = num_vgprs; in radv_postprocess_config()
1367 config_out->rsrc1 = S_00B848_VGPRS((num_vgprs - 1) / (info->wave_size == 32 ? 8 : 4)) | in radv_postprocess_config()
1935 prolog->rsrc1 = S_00B848_VGPRS((bin->num_vgprs - 1) / (wave_size == 32 ? 8 : 4)) |
2107 if (conf->num_vgprs) {
2109 unsigned vgprs = align(conf->num_vgprs, wave_size == 32 ? 8 : 4);
2222 statistics.resourceUsage.numUsedVgprs = conf->num_vgprs;
Dradv_shader.h429 uint8_t num_vgprs; member
Dradv_pipeline.c6010 s->value.u64 = shader->config.num_vgprs; in radv_GetPipelineExecutableStatisticsKHR()
/third_party/mesa3d/src/amd/vulkan/layers/
Dradv_sqtt_layer.c884 record->shader_data[i].vgpr_count = shader->config.num_vgprs; in radv_add_code_object()
/third_party/mesa3d/docs/relnotes/
D20.2.0.rst3300 - ac: align num_vgprs for gfx10.3