radeonsi: send shader info as debug messages in addition to stderr output
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 2 Jan 2016 21:30:57 +0000 (16:30 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 2 Jan 2016 21:47:24 +0000 (16:47 -0500)
commitf8cd11403a8029ae6e080c59c80f9d649578e5ed
tree5d644afc4c6defed726717dc985b799aa4bd6d6d
parent4bb1c8dfecef133822511f6147eac317e4690345
radeonsi: send shader info as debug messages in addition to stderr output

The output via stderr is very helpful for ad-hoc debugging tasks, so that remains
unchanged, but having the information available via debug messages as well
will allow the use of parallel shader-db runs.

Shader stats are always provided (if the context is a debug context, that is),
but you still have to enable the appropriate R600_DEBUG flags to get
disassembly (since it is rather spammy and is only generated by LLVM when we
explicitly ask for it).

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c