Mesa (main): frontends/va: Derive image from interlaced buffers for h26[4/5]encode

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 4 12:45:08 UTC 2021


Module: Mesa
Branch: main
Commit: 700d4ce68f4af813b9b72f2ce702d8f54e06ccdc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=700d4ce68f4af813b9b72f2ce702d8f54e06ccdc

Author: SureshGuttula <suresh.guttula at amd.corp-partner.google.com>
Date:   Fri May 28 09:01:54 2021 +0530

frontends/va: Derive image from interlaced buffers for h26[4/5]encode

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 at amd.corp-partner.google.com>
Reviewed-by: Leo Liu <leo.liu at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11054>

---

 src/gallium/frontends/va/image.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/frontends/va/image.c b/src/gallium/frontends/va/image.c
index 284f0401ce2..3d71679e01d 100644
--- a/src/gallium/frontends/va/image.c
+++ b/src/gallium/frontends/va/image.c
@@ -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)



More information about the mesa-commit mailing list