diff options
author | Chris Wilson <[email protected]> | 2016-11-02 07:01:35 +0000 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-11-03 11:16:05 -0700 |
commit | b4001af1744a02f472bd1204458662088307981b (patch) | |
tree | c7e57c7458a4172347dc7f80329497b56b8e940a /src/mesa/drivers/dri | |
parent | 27bd9c0f0a994eb984f601e3e2ae34ac6913e7a0 (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_cfg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h index b8af40f725f..ec21ae74c89 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.h +++ b/src/mesa/drivers/dri/i965/brw_cfg.h @@ -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(); |