Module: Mesa Branch: main Commit: 037609f1dc306e8bd286ef77cbb69fc169477a7b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=037609f1dc306e8bd286ef77cbb69fc169477a7b
Author: Alyssa Rosenzweig <[email protected]> Date: Sat Feb 18 20:48:22 2023 -0500 agx: Constify agx_print Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21430> --- src/asahi/compiler/agx_compiler.h | 6 +++--- src/asahi/compiler/agx_print.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/asahi/compiler/agx_compiler.h b/src/asahi/compiler/agx_compiler.h index dc384221ccc..031733e0626 100644 --- a/src/asahi/compiler/agx_compiler.h +++ b/src/asahi/compiler/agx_compiler.h @@ -783,9 +783,9 @@ agx_builder_insert(agx_cursor *cursor, agx_instr *I) /* Routines defined for AIR */ -void agx_print_instr(agx_instr *I, FILE *fp); -void agx_print_block(agx_block *block, FILE *fp); -void agx_print_shader(agx_context *ctx, FILE *fp); +void agx_print_instr(const agx_instr *I, FILE *fp); +void agx_print_block(const agx_block *block, FILE *fp); +void agx_print_shader(const agx_context *ctx, FILE *fp); void agx_optimizer(agx_context *ctx); void agx_lower_pseudo(agx_context *ctx); void agx_lower_uniform_sources(agx_context *ctx); diff --git a/src/asahi/compiler/agx_print.c b/src/asahi/compiler/agx_print.c index b9b5240f6e6..8396524ca46 100644 --- a/src/asahi/compiler/agx_print.c +++ b/src/asahi/compiler/agx_print.c @@ -107,7 +107,7 @@ agx_print_index(agx_index index, bool is_float, FILE *fp) } void -agx_print_instr(agx_instr *I, FILE *fp) +agx_print_instr(const agx_instr *I, FILE *fp) { assert(I->op < AGX_NUM_OPCODES); struct agx_opcode_info info = agx_opcodes_info[I->op]; @@ -210,7 +210,7 @@ agx_print_instr(agx_instr *I, FILE *fp) } void -agx_print_block(agx_block *block, FILE *fp) +agx_print_block(const agx_block *block, FILE *fp) { fprintf(fp, "block%u {\n", block->index); @@ -237,7 +237,7 @@ agx_print_block(agx_block *block, FILE *fp) } void -agx_print_shader(agx_context *ctx, FILE *fp) +agx_print_shader(const agx_context *ctx, FILE *fp) { agx_foreach_block(ctx, block) agx_print_block(block, fp);
