va: allocator: Add hack for no fourcc when surface creation.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 24 Jun 2022 17:42:36 +0000 (19:42 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 27 Jun 2022 13:43:14 +0000 (13:43 +0000)
commitec55017a83d99d40cad63068ac63a51a24bc6e16
tree7eb613e722ffb585609f9dfb83fb022228755276
parentffd94a98be9f531579b652fa2cdb0ed07aeb82b9
va: allocator: Add hack for no fourcc when surface creation.

This patch adds general mechanism for handling specific hacks. In this
case for jpeg decoder in i965 driver, which cannot create surfaces
with fourcc specified.

From jpeg decoder to the allocator, which creates the surfaces,
there's a non-simple path: basedec pseudo-class adds a hacks guint32
which will be set by actual elements (vajpegdec, in this case) and
basedec will always set the hack to the allocator when the allocator
is instantiated.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1575>
subprojects/gst-plugins-bad/gst-libs/gst/va/gstva.h
subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c
subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.h
subprojects/gst-plugins-bad/sys/va/gstvabasedec.c
subprojects/gst-plugins-bad/sys/va/gstvabasedec.h