diff options
author | Christian König <[email protected]> | 2013-07-15 08:31:25 -0600 |
---|---|---|
committer | Christian König <[email protected]> | 2013-08-19 10:21:15 +0200 |
commit | a15cbabb8b546fa063cfb6f528dd67ee0037079b (patch) | |
tree | 12c03b8f268ce819f1134bedbb893a451b4377e4 /src/gallium/state_trackers/xvmc | |
parent | f2f7064e560a83fc78d0e5b1d3a7d4aaac119a49 (diff) |
vl: add entrypoint to get_video_param
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/xvmc')
-rw-r--r-- | src/gallium/state_trackers/xvmc/subpicture.c | 1 | ||||
-rw-r--r-- | src/gallium/state_trackers/xvmc/surface.c | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/xvmc/subpicture.c b/src/gallium/state_trackers/xvmc/subpicture.c index 51fcf78e8f1..e38f6f7c7f8 100644 --- a/src/gallium/state_trackers/xvmc/subpicture.c +++ b/src/gallium/state_trackers/xvmc/subpicture.c @@ -227,6 +227,7 @@ Status XvMCCreateSubpicture(Display *dpy, XvMCContext *context, XvMCSubpicture * tex_templ.last_level = 0; if (pipe->screen->get_video_param(pipe->screen, PIPE_VIDEO_PROFILE_UNKNOWN, + PIPE_VIDEO_ENTRYPOINT_UNKNOWN, PIPE_VIDEO_CAP_NPOT_TEXTURES)) { tex_templ.width0 = width; tex_templ.height0 = height; 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 ); |