radeonsi: print saved CS to the log context
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 4 Aug 2017 16:24:33 +0000 (18:24 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 22 Aug 2017 07:53:14 +0000 (09:53 +0200)
commit4c3f36ec6b59de2245257c819df7628aaa6bf57b
treec7e8c49a472da3bf0f0d763044c95feeaf53356a
parentbc933397996c9591ef92cb1eae62e909b111d04f
radeonsi: print saved CS to the log context

Use the auto logger facility, so that CS chunks will be interleaved
with other log info.

v2:
- fix some crashes when not using CE
- fix skipping "previous" chunks of current (unflushed) IB
- fix error handling in si_begin_cs_debug

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_debug.c
src/gallium/drivers/radeonsi/si_hw_context.c
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state_draw.c