[Mesa-dev] [PATCH 2/7] nir: Constify nir_gs_count_vertices

Jason Ekstrand jason at jlekstrand.net
Tue Oct 20 18:10:17 PDT 2015


---
 src/glsl/nir/nir.h                   | 2 +-
 src/glsl/nir/nir_gs_count_vertices.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 64fa70b..9bad408 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -1896,7 +1896,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 e0bdf17..1c36067 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;
 
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list