diff options
Diffstat (limited to 'src/gallium/state_trackers/xvmc/surface.c')
-rw-r--r-- | src/gallium/state_trackers/xvmc/surface.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/xvmc/surface.c b/src/gallium/state_trackers/xvmc/surface.c index db32142a7e6..2e67612f690 100644 --- a/src/gallium/state_trackers/xvmc/surface.c +++ b/src/gallium/state_trackers/xvmc/surface.c @@ -177,7 +177,8 @@ Status XvMCCreateSurface(Display *dpy, XvMCContext *context, XvMCSurface *surfac tmpl.buffer_format = pipe->screen->get_video_param ( pipe->screen, - PIPE_VIDEO_PROFILE_MPEG2_MAIN, + context_priv->decoder->profile, + context_priv->decoder->entrypoint, PIPE_VIDEO_CAP_PREFERED_FORMAT ); tmpl.chroma_format = context_priv->decoder->chroma_format; @@ -186,7 +187,8 @@ Status XvMCCreateSurface(Display *dpy, XvMCContext *context, XvMCSurface *surfac tmpl.interlaced = pipe->screen->get_video_param ( pipe->screen, - PIPE_VIDEO_PROFILE_MPEG2_MAIN, + context_priv->decoder->profile, + context_priv->decoder->entrypoint, PIPE_VIDEO_CAP_PREFERS_INTERLACED ); |