i965: Use rzalloc for cfg_t

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

Fixes: 52d2b28f7f ("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>
This commit is contained in:
Chris Wilson 2016-11-02 07:01:35 +00:00 committed by Kenneth Graunke
parent 27bd9c0f0a
commit b4001af174
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ bblock_t::last_non_control_flow_inst()
struct cfg_t {
#ifdef __cplusplus
DECLARE_RALLOC_CXX_OPERATORS(cfg_t)
DECLARE_RZALLOC_CXX_OPERATORS(cfg_t)
cfg_t(exec_list *instructions);
~cfg_t();