summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorEmeric Grange <[email protected]>2011-09-12 23:39:27 +0200
committerChristian König <[email protected]>2011-09-14 15:49:15 +0200
commit82e8bf36d8fcd46bcb76ec300875a47c7312f1a1 (patch)
treedeba14c1696dfa0ed4daace96f856c955479d380 /src/gallium/state_trackers
parent42fddacabafebd4c9f1ba2f8f94192f8f4f76fce (diff)
g3dvl: Add max_references parameter to vl_create_decoder()
Signed-off-by: Emeric Grange <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/vdpau/decode.c4
-rw-r--r--src/gallium/state_trackers/xorg/xvmc/context.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/vdpau/decode.c b/src/gallium/state_trackers/vdpau/decode.c
index 2bf782ef220..35011669cf2 100644
--- a/src/gallium/state_trackers/vdpau/decode.c
+++ b/src/gallium/state_trackers/vdpau/decode.c
@@ -69,14 +69,14 @@ vlVdpDecoderCreate(VdpDevice device,
vldecoder->device = dev;
- // TODO: Define max_references. Used mainly for H264
vldecoder->decoder = pipe->create_video_decoder
(
pipe, p_profile,
PIPE_VIDEO_ENTRYPOINT_BITSTREAM,
PIPE_VIDEO_CHROMA_FORMAT_420,
- width, height
+ width, height, max_references
);
+
if (!vldecoder->decoder) {
ret = VDP_STATUS_ERROR;
goto error_decoder;
diff --git a/src/gallium/state_trackers/xorg/xvmc/context.c b/src/gallium/state_trackers/xorg/xvmc/context.c
index 172f16cfb63..848da408c04 100644
--- a/src/gallium/state_trackers/xorg/xvmc/context.c
+++ b/src/gallium/state_trackers/xorg/xvmc/context.c
@@ -250,7 +250,7 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id,
ProfileToPipe(mc_type),
(mc_type & XVMC_IDCT) ? PIPE_VIDEO_ENTRYPOINT_IDCT : PIPE_VIDEO_ENTRYPOINT_MC,
FormatToPipe(chroma_format),
- width, height
+ width, height, 2
);
if (!context_priv->decoder) {