Searched refs:wgs_per_sg (Results 1 – 3 of 3) sorted by relevance
67 for (uint32_t wgs_per_sg = 1; wgs_per_sg <= max_wgs_per_sg; wgs_per_sg++) { in v3d_csd_choose_workgroups_per_supergroup() local71 if (wgs_per_sg > num_wgs) in v3d_csd_choose_workgroups_per_supergroup()77 uint32_t unused_lanes = (16 - ((wgs_per_sg * wg_size) % 16)) & 0x0f; in v3d_csd_choose_workgroups_per_supergroup()79 return wgs_per_sg; in v3d_csd_choose_workgroups_per_supergroup()82 best_wgs_per_sg = wgs_per_sg; in v3d_csd_choose_workgroups_per_supergroup()
1407 uint32_t wgs_per_sg = in v3d_launch_grid() local1415 uint32_t batches_per_sg = DIV_ROUND_UP(wgs_per_sg * wg_size, 16); in v3d_launch_grid()1416 uint32_t whole_sgs = num_wgs / wgs_per_sg; in v3d_launch_grid()1417 uint32_t rem_wgs = num_wgs - whole_sgs * wgs_per_sg; in v3d_launch_grid()1421 submit.cfg[3] |= (wgs_per_sg & 0xf) << V3D_CSD_CFG3_WGS_PER_SG_SHIFT; in v3d_launch_grid()1446 wgs_per_sg, in v3d_launch_grid()
3675 uint32_t wgs_per_sg = in cmd_buffer_create_csd_job() local3683 uint32_t batches_per_sg = DIV_ROUND_UP(wgs_per_sg * wg_size, 16); in cmd_buffer_create_csd_job()3684 uint32_t whole_sgs = num_wgs / wgs_per_sg; in cmd_buffer_create_csd_job()3685 uint32_t rem_wgs = num_wgs - whole_sgs * wgs_per_sg; in cmd_buffer_create_csd_job()3689 submit->cfg[3] |= (wgs_per_sg & 0xf) << V3D_CSD_CFG3_WGS_PER_SG_SHIFT; in cmd_buffer_create_csd_job()3711 cs_variant->prog_data.cs->shared_size * wgs_per_sg, in cmd_buffer_create_csd_job()