summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2017-08-23 13:18:21 -0400
committerLeo Liu <[email protected]>2017-08-23 14:51:12 -0400
commit5ff97f2644d7438a9fdc75a2a9bc850c7ce96783 (patch)
treeeb37983e84d8637ebbd6a956a77ac8f747f78bc1 /src/gallium/state_trackers/va
parentf0602dc92044ea6d738d0e539e52f938a41f6093 (diff)
st/va: exclude the buffer reallocation for encode case
Since encoder only support de-interlaced buffers. v2: move to parameter call to tell dec/enc Signed-off-by: Leo Liu <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va')
-rw-r--r--src/gallium/state_trackers/va/picture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/va/picture.c b/src/gallium/state_trackers/va/picture.c
index b2be7af8c46..47e63d3b30c 100644
--- a/src/gallium/state_trackers/va/picture.c
+++ b/src/gallium/state_trackers/va/picture.c
@@ -622,7 +622,7 @@ vlVaEndPicture(VADriverContextP ctx, VAContextID context_id)
screen = context->decoder->context->screen;
interlaced = screen->get_video_param(screen, context->decoder->profile,
- PIPE_VIDEO_ENTRYPOINT_BITSTREAM,
+ context->decoder->entrypoint,
PIPE_VIDEO_CAP_SUPPORTS_INTERLACED);
if (surf->buffer->interlaced != interlaced) {