diff options
author | Juha-Pekka Heikkila <[email protected]> | 2016-06-14 17:59:04 +0300 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-10-31 11:53:38 +0100 |
commit | 5fa41520e4948bb9b0ecac0ba86f7b5507c974df (patch) | |
tree | b6a712c3b91056918df0e2a37d564d68ea621343 | |
parent | e40c5dab5e36adf5312725663867f840cfe28774 (diff) |
i965/vec4: zero allocated memory where needed
Signed-off-by: Juha-Pekka Heikkila <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_dead_code_eliminate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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, |