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

2016-06-07 Thread Juha-Pekka Heikkila
On 07.06.2016 20:26, Ian Romanick wrote: On 06/07/2016 07:26 AM, Juha-Pekka Heikkila 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 to use

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

2016-06-07 Thread Ian Romanick
On 06/07/2016 07:26 AM, Juha-Pekka Heikkila 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 to use malloc, leave rzalloc to use calloc

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

2016-06-07 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