util: fix valgrind errors when dumping pipe_draw_info
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 18 Aug 2017 17:29:49 +0000 (19:29 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 23 Aug 2017 11:53:54 +0000 (13:53 +0200)
commit556946f801890aaf5dbecda1f224af61f302c973
tree939dda0e9964707686dbb564b129cece62f85689
parent94cc01105ec70cc364d6cea3f909b0b04dcad7c1
util: fix valgrind errors when dumping pipe_draw_info

Various index-related fields are only initialized when required, so
they should only be dumped in those cases.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_dump_state.c