util: Make DECLARE_LINEAR_ALLOC_* macros assume no destructors
authorCaio Oliveira <caio.oliveira@intel.com>
Mon, 18 Sep 2023 08:15:42 +0000 (01:15 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 17:26:17 +0000 (17:26 +0000)
commitb269cadf5680e688286660a507fd64d4f3145710
tree8158c4da813045f0b43caed9aee4b9166da05568
parentaec516ead66c74e7002b6918c4c94d2ebcb591c8
util: Make DECLARE_LINEAR_ALLOC_* macros assume no destructors

Linear allocator doesn't support calling custom destructors to
its child allocations nor freeing individual child allocations.
So the destructor callback and the delete operator don't apply
to objects using linear allocator.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25280>
src/util/ralloc.h