[Mesa-dev] [PATCH 1/4] i965/cfg: Initialize cfg_t::cycle_count.

Matt Turner mattst88 at gmail.com
Mon Nov 28 21:46:56 UTC 2016


This reverts commit b4001af1744a02f472bd1204458662088307981b.
---
 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(-)

diff --git a/src/mesa/drivers/dri/i965/brw_cfg.cpp b/src/mesa/drivers/dri/i965/brw_cfg.cpp
index 53b32be..ff2cf6a 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 ec21ae7..b8af40f 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();
-- 
2.7.3



More information about the mesa-dev mailing list