Re: [Mesa-dev] [PATCH 7/7] util: Fix ralloc to use malloc instead of calloc

2016-06-16 Thread Juha-Pekka Heikkila
On 14.06.2016 18:03, Jason Ekstrand wrote: On Tue, Jun 14, 2016 at 7:59 AM, Juha-Pekka Heikkila > wrote: ralloc originally had had idea of using malloc but somehow had slipped in calloc. Without these changes rzalloc

Re: [Mesa-dev] [PATCH 7/7] util: Fix ralloc to use malloc instead of calloc

2016-06-14 Thread Jason Ekstrand
On Tue, Jun 14, 2016 at 7:59 AM, Juha-Pekka Heikkila < juhapekka.heikk...@gmail.com> wrote: > ralloc originally had had idea of using malloc but somehow > had slipped in calloc. Without these changes rzalloc did double > job of zeroing the memory, first calloc and then memset. > Now change ralloc

[Mesa-dev] [PATCH 7/7] util: Fix ralloc to use malloc instead of calloc

2016-06-14 Thread Juha-Pekka Heikkila
ralloc originally had had idea of using malloc but somehow had slipped in calloc. Without these changes rzalloc did double job of zeroing the memory, first calloc and then memset. Now change ralloc to use malloc, leave rzalloc to use calloc and make needed changes in ralloc functions to get things