diff options
author | Kenneth Graunke <[email protected]> | 2015-02-09 13:42:16 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-02-10 03:37:55 -0800 |
commit | 480ee1f0b46a916b91a9530d7384a58c8a87d779 (patch) | |
tree | 838bf46ec2569baf9ba80ccd61bcdc2cc2ad0113 /src/glsl/nir/nir_print.c | |
parent | 08a06b6b891df456902f5e170f1d82236d0c73d2 (diff) |
nir: Mark nir_print_instr's instr pointer as const.
Printing instructions doesn't modify them, so we can mark the parameter
const.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_print.c')
-rw-r--r-- | src/glsl/nir/nir_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c index 9c07950a67d..6a3c6a0278f 100644 --- a/src/glsl/nir/nir_print.c +++ b/src/glsl/nir/nir_print.c @@ -576,7 +576,7 @@ print_parallel_copy_instr(nir_parallel_copy_instr *instr, FILE *fp) } static void -print_instr(nir_instr *instr, print_var_state *state, unsigned tabs, FILE *fp) +print_instr(const nir_instr *instr, print_var_state *state, unsigned tabs, FILE *fp) { print_tabs(tabs, fp); @@ -882,7 +882,7 @@ nir_print_shader(nir_shader *shader, FILE *fp) } void -nir_print_instr(nir_instr *instr, FILE *fp) +nir_print_instr(const nir_instr *instr, FILE *fp) { print_instr(instr, NULL, 0, fp); } |