revenge of CALLOC_STRUCT
Rob Clark
robdclark at gmail.com
Fri Dec 24 03:42:45 UTC 2021
On Wed, Dec 22, 2021 at 2:36 PM Dave Airlie <airlied at gmail.com> wrote:
>
> Hey,
>
> Happy holidays, and as though to consider over the break,
>
> We have the vmware used MALLOC/FREE/CALLOC/CALLOC_STRUCT wrappers used
> throughout gallium.
>
> We have ST_CALLOC_STRUCT in use in the mesa state tracker, not used in gallium.
>
> Merging the state tracker into mesa proper, and even prior to this a
> few CALLOC_STRUCT have started to leak into src/mesa/*.
>
> Now I don't think we want that, but CALLOC_STRUCT is a genuinely
> useful macro on it's own,
> I'm considering just defined a calloc_struct instead for the
> non-gallium use that goes with malloc/calloc/free.
>
> Any opinions, or should mesa just get u_memory.h support for Xmas?
u_memory.h already got promoted to src/util, so let's just use that
BR,
-R
More information about the mesa-dev
mailing list