From: Juha-Pekka Heikkila Date: Tue, 14 Jun 2016 14:59:04 +0000 (+0300) Subject: i965/vec4: zero allocated memory where needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5fa41520e4948bb9b0ecac0ba86f7b5507c974df;p=mesa.git i965/vec4: zero allocated memory where needed Signed-off-by: Juha-Pekka Heikkila Signed-off-by: Marek Olšák --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp b/src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp index 916a3fb26d1..65f9f388988 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp @@ -44,8 +44,8 @@ vec4_visitor::dead_code_eliminate() calculate_live_intervals(); int num_vars = live_intervals->num_vars; - BITSET_WORD *live = ralloc_array(NULL, BITSET_WORD, BITSET_WORDS(num_vars)); - BITSET_WORD *flag_live = ralloc_array(NULL, BITSET_WORD, 1); + BITSET_WORD *live = rzalloc_array(NULL, BITSET_WORD, BITSET_WORDS(num_vars)); + BITSET_WORD *flag_live = rzalloc_array(NULL, BITSET_WORD, 1); foreach_block_reverse_safe(block, cfg) { memcpy(live, live_intervals->block_data[block->num].liveout,