OSDN Git Service

st/va: exclude the buffer reallocation for encode case
authorLeo Liu <leo.liu@amd.com>
Wed, 23 Aug 2017 17:18:21 +0000 (13:18 -0400)
committerLeo Liu <leo.liu@amd.com>
Wed, 23 Aug 2017 18:51:12 +0000 (14:51 -0400)
Since encoder only support de-interlaced buffers.

v2: move to parameter call to tell dec/enc

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/picture.c

index b2be7af..47e63d3 100644 (file)
@@ -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) {