It seems that the VA_SURFACE_ATTRIB_USAGE_HINT_ENCODER is used only
for the recon surfaces, if we set this flags for input raw surfaces,
the alignment is wrong and we get broken result.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2100>
{
GstAllocator *allocator;
GstAllocationParams params = { 0, };
- guint size, usage_hint = VA_SURFACE_ATTRIB_USAGE_HINT_ENCODER;
+ guint size, usage_hint = 0;
GArray *surface_formats = NULL;
GstCaps *caps;
GstCaps *caps;
GstVideoInfo info;
gboolean need_pool = FALSE;
- guint size, usage_hint = VA_SURFACE_ATTRIB_USAGE_HINT_ENCODER;
+ guint size, usage_hint = 0;
gst_query_parse_allocation (query, &caps, &need_pool);
if (!caps)