mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-24 11:40:25 +01:00
glsl: Add C-callable fprint_ir function.
Acked-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
d45fadf11a
commit
9b0108ddc1
2 changed files with 10 additions and 0 deletions
|
|
@ -2348,6 +2348,9 @@ extern "C" {
|
|||
extern void _mesa_print_ir(FILE *f, struct exec_list *instructions,
|
||||
struct _mesa_glsl_parse_state *state);
|
||||
|
||||
extern void
|
||||
fprint_ir(FILE *f, const void *instruction);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -76,6 +76,13 @@ _mesa_print_ir(FILE *f, exec_list *instructions,
|
|||
fprintf(f, "\n)");
|
||||
}
|
||||
|
||||
void
|
||||
fprint_ir(FILE *f, const void *instruction)
|
||||
{
|
||||
const ir_instruction *ir = (const ir_instruction *)instruction;
|
||||
ir->fprint(f);
|
||||
}
|
||||
|
||||
} /* extern "C" */
|
||||
|
||||
ir_print_visitor::ir_print_visitor(FILE *f)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue