mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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 <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
parent
08a06b6b89
commit
480ee1f0b4
2 changed files with 3 additions and 3 deletions
|
|
@ -1489,7 +1489,7 @@ void nir_index_ssa_defs(nir_function_impl *impl);
|
|||
void nir_index_blocks(nir_function_impl *impl);
|
||||
|
||||
void nir_print_shader(nir_shader *shader, FILE *fp);
|
||||
void nir_print_instr(nir_instr *instr, FILE *fp);
|
||||
void nir_print_instr(const nir_instr *instr, FILE *fp);
|
||||
|
||||
#ifdef DEBUG
|
||||
void nir_validate_shader(nir_shader *shader);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue