Beispiel #1
0
static void dump_info(struct ir3_shader_variant *so, const char *str)
{
	uint32_t *bin;
	const char *type = ir3_shader_stage(so->shader);
	bin = ir3_shader_assemble(so, so->shader->compiler->gpu_id);
	debug_printf("; %s: %s\n", type, str);
	ir3_shader_disasm(so, bin, stdout);
	free(bin);
}
Beispiel #2
0
static void dump_info(struct ir3_shader_variant *so, const char *str)
{
	uint32_t *bin;
	const char *type = ir3_shader_stage(so->shader);
	// TODO make gpu_id configurable on cmdline
	bin = ir3_shader_assemble(so, 320);
	debug_printf("; %s: %s\n", type, str);
	ir3_shader_disasm(so, bin);
	free(bin);
}
Beispiel #3
0
static void
dump_shader_info(struct ir3_shader_variant *v, struct pipe_debug_callback *debug)
{
	if (!unlikely(fd_mesa_debug & FD_DBG_SHADERDB))
		return;

	pipe_debug_message(debug, SHADER_INFO,
			"%s shader: %u inst, %u dwords, "
			"%u half, %u full, %u const, %u constlen, "
			"%u (ss), %u (sy), %d max_sun, %d loops\n",
			ir3_shader_stage(v->shader),
			v->info.instrs_count,
			v->info.sizedwords,
			v->info.max_half_reg + 1,
			v->info.max_reg + 1,
			v->info.max_const + 1,
			v->constlen,
			v->info.ss, v->info.sy,
			v->max_sun, v->loops);
}