nir: Constify nir_gs_count_vertices

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Jason Ekstrand 2015-10-20 17:40:19 -07:00
parent 4eb84a03be
commit 2686477d37
2 changed files with 2 additions and 2 deletions

View file

@ -1899,7 +1899,7 @@ void nir_dump_dom_frontier(nir_shader *shader, FILE *fp);
void nir_dump_cfg_impl(nir_function_impl *impl, FILE *fp);
void nir_dump_cfg(nir_shader *shader, FILE *fp);
int nir_gs_count_vertices(nir_shader *shader);
int nir_gs_count_vertices(const nir_shader *shader);
bool nir_split_var_copies(nir_shader *shader);

View file

@ -51,7 +51,7 @@ as_set_vertex_count(nir_instr *instr)
* counting at the NIR level.
*/
int
nir_gs_count_vertices(nir_shader *shader)
nir_gs_count_vertices(const nir_shader *shader)
{
int count = -1;