summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_live_variables.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-06-28 19:52:04 -0700
committerMatt Turner <mattst88@gmail.com>2014-07-01 08:55:52 -0700
commitec1b2d6aa075c678f0eb0405be64253450f995a1 (patch)
tree3984ba6f0996836d31a83764933081b1bae39819 /src/mesa/drivers/dri/i965/brw_vec4_live_variables.h
parent021094481cc8d2d6dd199e39fd77818bb22b6e64 (diff)
downloadexternal_mesa3d-ec1b2d6aa075c678f0eb0405be64253450f995a1.zip
external_mesa3d-ec1b2d6aa075c678f0eb0405be64253450f995a1.tar.gz
external_mesa3d-ec1b2d6aa075c678f0eb0405be64253450f995a1.tar.bz2
i965: Mark fields in the live interval classes protected.
cfg, for instance, is a pointer to a local variable in calculate_live_intervals, certainly not valid after that function has returned. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_live_variables.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_live_variables.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_live_variables.h b/src/mesa/drivers/dri/i965/brw_vec4_live_variables.h
index b2d8b33..03cc813 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_live_variables.h
+++ b/src/mesa/drivers/dri/i965/brw_vec4_live_variables.h
@@ -58,18 +58,19 @@ public:
vec4_live_variables(vec4_visitor *v, cfg_t *cfg);
~vec4_live_variables();
+ int num_vars;
+ int bitset_words;
+
+ /** Per-basic-block information on live variables */
+ struct block_data *bd;
+
+protected:
void setup_def_use();
void compute_live_variables();
vec4_visitor *v;
cfg_t *cfg;
void *mem_ctx;
-
- int num_vars;
- int bitset_words;
-
- /** Per-basic-block information on live variables */
- struct block_data *bd;
};
} /* namespace brw */