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:
parent
27bd9c0f0a
commit
b4001af174
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue