mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-11 06:28:09 +02:00
vdpau: get state tracker to compile again
This commit is contained in:
parent
59774e5c7a
commit
7dc87676f2
1 changed files with 6 additions and 4 deletions
|
|
@ -139,7 +139,8 @@ vlVdpCreateSurfaceTarget(vlVdpDecoder *vldecoder, vlVdpSurface *vlsurf)
|
|||
|
||||
memset(&tmplt, 0, sizeof(struct pipe_resource));
|
||||
tmplt.target = PIPE_TEXTURE_2D;
|
||||
tmplt.format = vctx->get_param(vctx,PIPE_CAP_DECODE_TARGET_PREFERRED_FORMAT);
|
||||
// TODO
|
||||
//tmplt.format = vctx->get_param(vctx,PIPE_CAP_DECODE_TARGET_PREFERRED_FORMAT);
|
||||
tmplt.last_level = 0;
|
||||
tmplt.width0 = vlsurf->width;
|
||||
tmplt.height0 = vlsurf->height;
|
||||
|
|
@ -218,9 +219,10 @@ vlVdpDecoderRenderMpeg2(vlVdpDecoder *vldecoder,
|
|||
goto skip_frame;
|
||||
}
|
||||
|
||||
vpipe->set_decode_target(vpipe,t_surf);
|
||||
vpipe->decode_macroblocks(vpipe, p_surf, f_surf, num_macroblocks,
|
||||
(struct pipe_macroblock *)pipe_macroblocks, NULL);
|
||||
// TODO
|
||||
//vpipe->set_decode_target(vpipe,t_surf);
|
||||
//vpipe->decode_macroblocks(vpipe, p_surf, f_surf, num_macroblocks,
|
||||
// (struct pipe_macroblock *)pipe_macroblocks, NULL);
|
||||
|
||||
skip_frame:
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue