static void si_dump_shader(struct si_shader_selector *sel, const char *name, FILE *f) { if (!sel || !sel->current) return; fprintf(f, "%s shader disassembly:\n", name); si_dump_shader_key(sel->type, &sel->current->key, f); fprintf(f, "%s\n\n", sel->current->binary.disasm_string); }
static void si_dump_shader(struct si_screen *sscreen, struct si_shader_ctx_state *state, FILE *f) { if (!state->cso || !state->current) return; si_dump_shader_key(state->cso->type, &state->current->key, f); si_shader_dump(sscreen, state->current, NULL, state->cso->info.processor, f); }