Home
last modified time | relevance | path

Searched refs:user_sgprs (Results 1 – 3 of 3) sorted by relevance

/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_compute.c135 unsigned user_sgprs = SI_NUM_RESOURCE_SGPRS + (sel->info.uses_grid_size ? 3 : 0) + in si_create_compute_state_async() local
141 for (unsigned i = 0; i < MIN2(3, sel->info.base.num_ssbos) && user_sgprs <= 12; i++) { in si_create_compute_state_async()
142 user_sgprs = align(user_sgprs, 4); in si_create_compute_state_async()
144 sel->cs_shaderbufs_sgpr_index = user_sgprs; in si_create_compute_state_async()
145 user_sgprs += 4; in si_create_compute_state_async()
156 if (align(user_sgprs, num_sgprs) + num_sgprs > 16) in si_create_compute_state_async()
159 user_sgprs = align(user_sgprs, num_sgprs); in si_create_compute_state_async()
161 sel->cs_images_sgpr_index = user_sgprs; in si_create_compute_state_async()
162 user_sgprs += num_sgprs; in si_create_compute_state_async()
165 sel->cs_images_num_sgprs = user_sgprs - sel->cs_images_sgpr_index; in si_create_compute_state_async()
[all …]
Dsi_compute_prim_discard.c1319 unsigned user_sgprs = 13; in si_dispatch_prim_discard_cs_and_draw() local
1385 radeon_emit(cs, S_00B84C_SCRATCH_EN(0 /* no scratch */) | S_00B84C_USER_SGPR(user_sgprs) | in si_dispatch_prim_discard_cs_and_draw()
1462 radeon_set_sh_reg_seq(cs, R_00B900_COMPUTE_USER_DATA_0, user_sgprs); in si_dispatch_prim_discard_cs_and_draw()
Dsi_shader.c276 unsigned user_sgprs = ctx->args.num_sgprs_used; in declare_vb_descriptor_input_sgprs() local
279 user_sgprs -= 8; in declare_vb_descriptor_input_sgprs()
280 assert(user_sgprs <= SI_SGPR_VS_VB_DESCRIPTOR_FIRST); in declare_vb_descriptor_input_sgprs()
283 for (unsigned i = user_sgprs; i < SI_SGPR_VS_VB_DESCRIPTOR_FIRST; i++) in declare_vb_descriptor_input_sgprs()