summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2018-03-14 15:31:04 -0400
committerLeo Liu <[email protected]>2018-04-12 11:15:13 -0400
commit30438fbf466677b8e2159ac1db02cb4cdc4acdaa (patch)
tree1817f7e75319c5cb4753f0a2f2cfe0aafe7cada2 /src
parent0f373a65e54ae165b9d928aaef497577c8a4c362 (diff)
st/va: add VP9 picture to context
Signed-off-by: Leo Liu <[email protected]> Acked-by: Christian König <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/va/context.c4
-rw-r--r--src/gallium/state_trackers/va/va_private.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index 836aa77c36c..14e904ee490 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 4396abb586b..7c387478602 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;