From: Jason Ekstrand Date: Wed, 21 Oct 2015 00:40:19 +0000 (-0700) Subject: nir: Constify nir_gs_count_vertices X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2686477d3757de50c31aa193bde8ad57fe539e44;p=mesa.git nir: Constify nir_gs_count_vertices Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index f65d44c4bdf..e3777f926e2 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -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); diff --git a/src/glsl/nir/nir_gs_count_vertices.c b/src/glsl/nir/nir_gs_count_vertices.c index e0bdf170d22..1c360673ddc 100644 --- a/src/glsl/nir/nir_gs_count_vertices.c +++ b/src/glsl/nir/nir_gs_count_vertices.c @@ -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;