ac/nir: Move ac_nir_gs_shader_query declaration to ac_nir_helpers.h

This is a helper function, so drivers don't need to call it.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32966>
This commit is contained in:
Timur Kristóf
2025-01-09 18:28:18 -06:00
parent 88c951bd46
commit e79c77b1ef
2 changed files with 10 additions and 10 deletions

View File

@@ -263,16 +263,6 @@ ac_nir_lower_legacy_vs(nir_shader *nir,
bool kill_layer, bool kill_layer,
bool force_vrs); bool force_vrs);
bool
ac_nir_gs_shader_query(nir_builder *b,
bool has_gen_prim_query,
bool has_gs_invocations_query,
bool has_gs_primitives_query,
unsigned num_vertices_per_primitive,
unsigned wave_size,
nir_def *vertex_count[4],
nir_def *primitive_count[4]);
void void
ac_nir_lower_legacy_gs(nir_shader *nir, ac_nir_lower_legacy_gs(nir_shader *nir,
bool has_gen_prim_query, bool has_gen_prim_query,

View File

@@ -164,6 +164,16 @@ ac_get_global_ids(nir_builder *b, unsigned num_components, unsigned bit_size);
void void
ac_nir_emit_legacy_streamout(nir_builder *b, unsigned stream, nir_xfb_info *info, ac_nir_prerast_out *out); ac_nir_emit_legacy_streamout(nir_builder *b, unsigned stream, nir_xfb_info *info, ac_nir_prerast_out *out);
bool
ac_nir_gs_shader_query(nir_builder *b,
bool has_gen_prim_query,
bool has_gs_invocations_query,
bool has_gs_primitives_query,
unsigned num_vertices_per_primitive,
unsigned wave_size,
nir_def *vertex_count[4],
nir_def *primitive_count[4]);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif