ac/nir/ngg: Don't call has_input_primitive in GS lowering.
The entire GS lowering will be moved to another file, which won't have this function. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33218>
This commit is contained in:
@@ -2859,7 +2859,7 @@ ac_nir_lower_ngg_gs(nir_shader *shader, const ac_nir_lower_ngg_options *options)
|
||||
state.lds_addr_gs_scratch = nir_load_lds_ngg_scratch_base_amd(b);
|
||||
|
||||
/* Wrap the GS control flow. */
|
||||
nir_if *if_gs_thread = nir_push_if(b, has_input_primitive(b));
|
||||
nir_if *if_gs_thread = nir_push_if(b, nir_is_subgroup_invocation_lt_amd(b, nir_load_merged_wave_info_amd(b), .base = 8));
|
||||
|
||||
nir_cf_reinsert(&extracted, b->cursor);
|
||||
b->cursor = nir_after_cf_list(&if_gs_thread->then_list);
|
||||
|
||||
Reference in New Issue
Block a user