i965: Use rzalloc for cfg_t
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Nov 2016 07:01:35 +0000 (07:01 +0000)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 3 Nov 2016 18:16:05 +0000 (11:16 -0700)
commitb4001af1744a02f472bd1204458662088307981b
treec7e57c7458a4172347dc7f80329497b56b8e940a
parent27bd9c0f0a994eb984f601e3e2ae34ac6913e7a0
i965: Use rzalloc for cfg_t

Valgrind reports that we use cfg.cycle_count uninitialised, so zero the
cfg_t on construction.

Fixes: 52d2b28f7f10 ("ralloc: use rzalloc where it's necessary")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/drivers/dri/i965/brw_cfg.h