C11 introduces the aligned_alloc() function, while mesa already has it's 
own wrapper. Create a new header, and make use of it.

I was aiming to convert gallium as well, although that code diverges 
depending on the debugging state required but wrapping around malloc and 
friends.

#This series points does not cover gallium, as the uses a slightly 
#different approach - i.e. rolls out a custom align_malloc around malloc 
#only when debugging 
#
#latter has 
#convoluted
#extra code for memory debugging. If the latter is unused, we could 
#easily port it over.
#
Cheers,
Emil

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to