st/va: add VP9 picture to context
authorLeo Liu <leo.liu@amd.com>
Wed, 14 Mar 2018 19:31:04 +0000 (15:31 -0400)
committerLeo Liu <leo.liu@amd.com>
Thu, 12 Apr 2018 15:15:13 +0000 (11:15 -0400)
Signed-off-by: Leo Liu <leo.liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/context.c
src/gallium/state_trackers/va/va_private.h

index 836aa77c36c2e5df79fe4d9f3d2bbb427f295906..14e904ee49028cc4e68d80db447d035795d63db7 100644 (file)
@@ -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;
       }
index 4396abb586b5f38ebbcb6747420b7a9d60352a86..7c387478602aa9d63d84511ca09cca85f7eaa733 100644 (file)
@@ -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;