diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-05-17 17:57:04 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2018-03-14 09:04:04 +0100 |
commit | 2a824b1edb7b0ec34b14c3fcad91cdf0a6c48dc1 (patch) | |
tree | 9c8faa197695a551b01ac4a9a99c142addf35711 | |
parent | b6bfa65b8cb3bc814952b85db1a0506a0a8d8855 (diff) |
nir/print: add const qualifiers to some more function arguments
-rw-r--r-- | src/compiler/nir/nir.h | 4 | ||||
-rw-r--r-- | src/compiler/nir/nir_print.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 40b10283f4..971ff91766 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2369,8 +2369,8 @@ unsigned nir_index_instrs(nir_function_impl *impl); void nir_index_blocks(nir_function_impl *impl); -void nir_print_shader(nir_shader *shader, FILE *fp); -void nir_print_shader_annotated(nir_shader *shader, FILE *fp, struct hash_table *errors); +void nir_print_shader(const nir_shader *shader, FILE *fp); +void nir_print_shader_annotated(const nir_shader *shader, FILE *fp, struct hash_table *errors); void nir_print_instr(const nir_instr *instr, FILE *fp); nir_shader *nir_shader_clone(void *mem_ctx, const nir_shader *s); diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index 7888dbd338..7881abe7dd 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -1159,7 +1159,7 @@ print_function(nir_function *function, print_state *state) } static void -init_print_state(print_state *state, nir_shader *shader, FILE *fp) +init_print_state(print_state *state, const nir_shader *shader, FILE *fp) { state->fp = fp; state->shader = shader; @@ -1178,7 +1178,7 @@ destroy_print_state(print_state *state) } void -nir_print_shader_annotated(nir_shader *shader, FILE *fp, +nir_print_shader_annotated(const nir_shader *shader, FILE *fp, struct hash_table *annotations) { print_state state; @@ -1248,7 +1248,7 @@ nir_print_shader_annotated(nir_shader *shader, FILE *fp, } void -nir_print_shader(nir_shader *shader, FILE *fp) +nir_print_shader(const nir_shader *shader, FILE *fp) { nir_print_shader_annotated(shader, fp, NULL); } |