Home
last modified time | relevance | path

Searched refs:rsrc2 (Results 1 – 9 of 9) sorted by relevance

/third_party/mesa3d/src/amd/common/
Dac_binary.c68 conf->rsrc2 = value; in ac_parse_shader_binary_config()
72 conf->rsrc2 = value; in ac_parse_shader_binary_config()
76 conf->rsrc2 = value; in ac_parse_shader_binary_config()
80 conf->rsrc2 = value; in ac_parse_shader_binary_config()
84 conf->rsrc2 = value; in ac_parse_shader_binary_config()
Dac_binary.h49 unsigned rsrc2; member
Dac_rtld.c552 assert(config->rsrc1 == 0 && config->rsrc2 == 0); in ac_rtld_read_config()
554 config->rsrc2 = c.rsrc2; in ac_rtld_read_config()
/third_party/mesa3d/src/amd/vulkan/
Dradv_shader.c1350 config_out->rsrc2 = S_00B12C_USER_SGPR(info->num_user_sgprs) | in radv_postprocess_config()
1361 config_out->rsrc2 |= in radv_postprocess_config()
1371 config_out->rsrc2 |= S_00B22C_USER_SGPR_MSB_GFX10(info->num_user_sgprs >> 5); in radv_postprocess_config()
1374 config_out->rsrc2 |= S_00B22C_USER_SGPR_MSB_GFX9(info->num_user_sgprs >> 5); in radv_postprocess_config()
1383 config_out->rsrc2 |= S_00B22C_OC_LDS_EN(1) | S_00B22C_EXCP_EN(excp_en); in radv_postprocess_config()
1388 config_out->rsrc2 |= S_00B12C_OC_LDS_EN(1) | S_00B12C_EXCP_EN(excp_en); in radv_postprocess_config()
1394 config_out->rsrc2 |= S_00B12C_OC_LDS_EN(1) | S_00B12C_EXCP_EN(excp_en); in radv_postprocess_config()
1396 config_out->rsrc2 |= S_00B22C_SHARED_VGPR_CNT(num_shared_vgpr_blocks); in radv_postprocess_config()
1406 config_out->rsrc2 |= in radv_postprocess_config()
1410 config_out->rsrc2 |= in radv_postprocess_config()
[all …]
Dradv_pipeline.c4408 radeon_emit(cs, shader->config.rsrc2); in radv_pipeline_generate_hw_vs()
4481 radeon_emit(cs, shader->config.rsrc2); in radv_pipeline_generate_hw_es()
4490 uint32_t rsrc2 = shader->config.rsrc2; in radv_pipeline_generate_hw_ls() local
4494 rsrc2 |= S_00B52C_LDS_SIZE(num_lds_blocks); in radv_pipeline_generate_hw_ls()
4497 radeon_set_sh_reg(cs, R_00B52C_SPI_SHADER_PGM_RSRC2_LS, rsrc2); in radv_pipeline_generate_hw_ls()
4501 radeon_emit(cs, rsrc2); in radv_pipeline_generate_hw_ls()
4521 radeon_emit(cs, shader->config.rsrc2); in radv_pipeline_generate_hw_ngg()
4660 radeon_emit(cs, shader->config.rsrc2); in radv_pipeline_generate_hw_hs()
4666 radeon_emit(cs, shader->config.rsrc2); in radv_pipeline_generate_hw_hs()
4857 radeon_emit(cs, gs->config.rsrc2 | S_00B22C_LDS_SIZE(gs_state->lds_size)); in radv_pipeline_generate_hw_gs()
[all …]
Dradv_cmd_buffer.c1375 (v->config.rsrc2 & C_00B22C_LDS_SIZE) | in radv_emit_graphics_pipeline()
6508 uint32_t rsrc2 = v->config.rsrc2; in radv_emit_ngg_culling_state() local
6513rsrc2 = (rsrc2 & C_00B22C_LDS_SIZE) | S_00B22C_LDS_SIZE(v->info.num_lds_blocks_when_not_culling); in radv_emit_ngg_culling_state()
6521 radeon_set_sh_reg(cmd_buffer->cs, R_00B22C_SPI_SHADER_PGM_RSRC2_GS, rsrc2); in radv_emit_ngg_culling_state()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_compute.c98 uint32_t rsrc2 = code_object->compute_pgm_resource_registers >> 32; in code_object_to_config() local
103 out_config->lds_size = MAX2(out_config->lds_size, G_00B84C_LDS_SIZE(rsrc2)); in code_object_to_config()
104 out_config->rsrc2 = rsrc2; in code_object_to_config()
207 shader->config.rsrc2 = S_00B84C_USER_SGPR(user_sgprs) | S_00B84C_SCRATCH_EN(scratch_enabled) | in si_create_compute_state_async()
512 config->rsrc2 &= C_00B84C_LDS_SIZE; in si_switch_compute_shader()
513 config->rsrc2 |= S_00B84C_LDS_SIZE(lds_blocks); in si_switch_compute_shader()
545 radeon_emit(config->rsrc2); in si_switch_compute_shader()
550 config->rsrc1, config->rsrc2); in si_switch_compute_shader()
Dsi_state_shaders.c546 shader->config.rsrc2 = in si_shader_ls()
571 shader->config.rsrc2 = S_00B42C_USER_SGPR(num_user_sgprs) | in si_shader_hs()
575 shader->config.rsrc2 |= S_00B42C_USER_SGPR_MSB_GFX10(num_user_sgprs >> 5); in si_shader_hs()
577 shader->config.rsrc2 |= S_00B42C_USER_SGPR_MSB_GFX9(num_user_sgprs >> 5); in si_shader_hs()
583 shader->config.rsrc2 = S_00B42C_USER_SGPR(GFX6_TCS_NUM_USER_SGPR) | S_00B42C_OC_LDS_EN(1) | in si_shader_hs()
600 si_pm4_set_reg(pm4, R_00B42C_SPI_SHADER_PGM_RSRC2_HS, shader->config.rsrc2); in si_shader_hs()
928 uint32_t rsrc2 = S_00B22C_USER_SGPR(num_user_sgprs) | in si_shader_gs() local
935 rsrc2 |= S_00B22C_USER_SGPR_MSB_GFX10(num_user_sgprs >> 5); in si_shader_gs()
938 rsrc2 |= S_00B22C_USER_SGPR_MSB_GFX9(num_user_sgprs >> 5); in si_shader_gs()
942 si_pm4_set_reg(pm4, R_00B22C_SPI_SHADER_PGM_RSRC2_GS, rsrc2); in si_shader_gs()
[all …]
Dsi_state_draw.cpp714 unsigned hs_rsrc2 = ls_current->config.rsrc2; in si_emit_derived_tess_state()
730 unsigned ls_rsrc2 = ls_current->config.rsrc2; in si_emit_derived_tess_state()