Lines Matching refs:max_gsprims
1901 static void clamp_gsprims_to_esverts(unsigned *max_gsprims, unsigned max_esverts, in clamp_gsprims_to_esverts() argument
1907 *max_gsprims = MIN2(*max_gsprims, 1 + max_reuse); in clamp_gsprims_to_esverts()
2028 unsigned max_gsprims = max_gsprims_base; in gfx10_get_ngg_info() local
2034 max_gsprims = MIN2(max_gsprims, target_lds_size / gsprim_lds_size); in gfx10_get_ngg_info()
2036 max_esverts = MIN2(max_esverts, max_gsprims * max_verts_per_prim); in gfx10_get_ngg_info()
2037 clamp_gsprims_to_esverts(&max_gsprims, max_esverts, min_verts_per_prim, uses_adjacency); in gfx10_get_ngg_info()
2038 assert(max_esverts >= max_verts_per_prim && max_gsprims >= 1); in gfx10_get_ngg_info()
2049 max_gsprims * gsprim_lds_size; in gfx10_get_ngg_info()
2052 max_gsprims = max_gsprims * target_lds_size / lds_total; in gfx10_get_ngg_info()
2054 max_esverts = MIN2(max_esverts, max_gsprims * max_verts_per_prim); in gfx10_get_ngg_info()
2055 clamp_gsprims_to_esverts(&max_gsprims, max_esverts, in gfx10_get_ngg_info()
2057 assert(max_esverts >= max_verts_per_prim && max_gsprims >= 1); in gfx10_get_ngg_info()
2077 orig_max_gsprims = max_gsprims; in gfx10_get_ngg_info()
2083 (max_lds_size - max_gsprims * gsprim_lds_size) / in gfx10_get_ngg_info()
2085 max_esverts = MIN2(max_esverts, max_gsprims * max_verts_per_prim); in gfx10_get_ngg_info()
2089 max_gsprims = align(max_gsprims, wavesize); in gfx10_get_ngg_info()
2090 max_gsprims = MIN2(max_gsprims, max_gsprims_base); in gfx10_get_ngg_info()
2098 unsigned usable_esverts = MIN2(max_esverts, max_gsprims * max_verts_per_prim); in gfx10_get_ngg_info()
2099 max_gsprims = in gfx10_get_ngg_info()
2100 MIN2(max_gsprims, (max_lds_size - usable_esverts * esvert_lds_size) / gsprim_lds_size); in gfx10_get_ngg_info()
2102 clamp_gsprims_to_esverts(&max_gsprims, max_esverts, in gfx10_get_ngg_info()
2104 assert(max_esverts >= max_verts_per_prim && max_gsprims >= 1); in gfx10_get_ngg_info()
2105 } while (orig_max_esverts != max_esverts || orig_max_gsprims != max_gsprims); in gfx10_get_ngg_info()
2117 max_gsprims * gs_num_invocations * gs_info->gs.vertices_out : in gfx10_get_ngg_info()
2134 ngg->max_gsprims = max_gsprims; in gfx10_get_ngg_info()
2138 ngg->ngg_emit_size = max_gsprims * gsprim_lds_size; in gfx10_get_ngg_info()
2142 MIN2(max_esverts, max_gsprims * max_verts_per_prim) * esvert_lds_size * 4; in gfx10_get_ngg_info()
4374 S_028A44_GS_PRIMS_PER_SUBGRP(ngg_state->max_gsprims) | in radv_pipeline_generate_hw_ngg()
4375 S_028A44_GS_INST_PRIMS_IN_SUBGRP(ngg_state->max_gsprims * gs_num_invocations)); in radv_pipeline_generate_hw_ngg()
4400 ge_cntl = S_03096C_PRIM_GRP_SIZE(ngg_state->max_gsprims) | in radv_pipeline_generate_hw_ngg()