From ca9e30e002db87946e93fe58118a740e6438d342 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 28 Nov 2016 13:24:04 -0800 Subject: i965/cfg: Initialize cfg_t::cycle_count. This reverts commit b4001af1744a02f472bd1204458662088307981b. Reviewed-by: Francisco Jerez --- src/mesa/drivers/dri/i965/brw_cfg.cpp | 1 + src/mesa/drivers/dri/i965/brw_cfg.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/drivers/dri/i965/brw_cfg.cpp b/src/mesa/drivers/dri/i965/brw_cfg.cpp index 53b32be510a..ff2cf6affad 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.cpp +++ b/src/mesa/drivers/dri/i965/brw_cfg.cpp @@ -158,6 +158,7 @@ cfg_t::cfg_t(exec_list *instructions) blocks = NULL; num_blocks = 0; idom_dirty = true; + cycle_count = 0; bblock_t *cur = NULL; int ip = 0; diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h index ec21ae74c89..b8af40f725f 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_RZALLOC_CXX_OPERATORS(cfg_t) + DECLARE_RALLOC_CXX_OPERATORS(cfg_t) cfg_t(exec_list *instructions); ~cfg_t(); -- cgit v1.2.3