radeonsi: pre-generate shader logs for ddebug
authorMarek Olšák <marek.olsak@amd.com>
Fri, 22 Jul 2016 21:40:45 +0000 (23:40 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 26 Jul 2016 21:06:46 +0000 (23:06 +0200)
commit1e5f00f9d5f412526d025f8f4762160ce7b5f2ba
treedd95c6ab356afabac296dfa377801cdd5282edda
parent18475aab6d484d4eb49b1cc9124c9aabc79f8527
radeonsi: pre-generate shader logs for ddebug

This cuts down the overhead of si_dump_shader when ddebug is capturing
shader logs, which is done for every draw call unconditionally (that's
quite a lot of work for a draw call).

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_debug.c
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state_shaders.c