frontends/va: Derive image from interlaced buffers for h26[4/5]encode
authorSureshGuttula <suresh.guttula@amd.corp-partner.google.com>
Fri, 28 May 2021 03:13:54 +0000 (08:43 +0530)
committerMarge Bot <eric+marge@anholt.net>
Fri, 4 Jun 2021 12:38:38 +0000 (12:38 +0000)
Add h26[4/5]encode application to allowlist to make an exception when
deriving images from interlaced buffers

This test is part of libva-utils,
find test code @ https://github.com/intel/libva-utils/blob/master/encode/h264encode.c

Signed-off-by: SureshGuttula <suresh.guttula@amd.corp-partner.google.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11054>

src/gallium/frontends/va/image.c

index 284f040..3d71679 100644 (file)
@@ -219,6 +219,8 @@ vlVaDeriveImage(VADriverContextP ctx, VASurfaceID surface, VAImage *image)
    const char *proc = util_get_process_name();
    const char *derive_interlaced_allowlist[] = {
          "vlc",
+         "h264encode",
+         "hevcencode"
    };
 
    if (!ctx)