mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 13:00:09 +01:00
agx: Constify agx_print
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21430>
This commit is contained in:
parent
a9c5956f2f
commit
037609f1dc
2 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue