[Mesa-dev] [PATCH 13/22] st/va: add VP9 picture to context

Leo Liu leo.liu at amd.com
Mon Apr 9 16:36:09 UTC 2018


Signed-off-by: Leo Liu <leo.liu at amd.com>
---
 src/gallium/state_trackers/va/context.c    | 4 ++++
 src/gallium/state_trackers/va/va_private.h | 1 +
 2 files changed, 5 insertions(+)

diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index 836aa77c36..14e904ee49 100644
--- a/src/gallium/state_trackers/va/context.c
+++ b/src/gallium/state_trackers/va/context.c
@@ -288,6 +288,10 @@ vlVaCreateContext(VADriverContextP ctx, VAConfigID config_id, int picture_width,
          }
          break;
 
+      case PIPE_VIDEO_FORMAT_VP9:
+         context->templat.max_references = num_render_targets;
+         break;
+
       default:
          break;
       }
diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h
index 4396abb586..7c38747860 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -270,6 +270,7 @@ typedef struct {
       struct pipe_h264_picture_desc h264;
       struct pipe_h265_picture_desc h265;
       struct pipe_mjpeg_picture_desc mjpeg;
+      struct pipe_vp9_picture_desc vp9;
       struct pipe_h264_enc_picture_desc h264enc;
       struct pipe_h265_enc_picture_desc h265enc;
    } desc;
-- 
2.14.1



More information about the mesa-dev mailing list