gltransformation: let graphene alloc its structures memory aligned
authorBastian Krause <bst@pengutronix.de>
Wed, 6 Apr 2022 16:08:46 +0000 (18:08 +0200)
committerBastian Krause <bst@pengutronix.de>
Wed, 6 Apr 2022 16:14:53 +0000 (18:14 +0200)
commitc39181903ee33fc7d744d6d0df09815f6db9e2d1
tree335f6ad4d6ba9cc8b6d804bc65da40c74175ef6f
parent42ec223f94edf16f88185ed93d6f765b76363146
gltransformation: let graphene alloc its structures memory aligned

With NEON instructions enabled, graphene expects the memory passed to it
16-byte-aligned. Otherwise unaligned memory access faults occur causing
SIGBUS signals.

graphene has alloc functions for its structures that take care of this,
so use them.

See also: https://github.com/ebassi/graphene/issues/215#issuecomment-794744829

Suggested-by: Sebastian Dröge <sebastian@centricular.com>
Signed-off-by: Bastian Krause <bst@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1321>
subprojects/gst-plugins-base/ext/gl/gstgltransformation.c
subprojects/gst-plugins-base/ext/gl/gstgltransformation.h