[Mesa-dev] [PATCH 0/8] nouveau: add support for vaapi

Emil Velikov emil.l.velikov at gmail.com
Thu Aug 27 10:11:14 PDT 2015


HI Julien,

On 27 August 2015 at 15:15, Julien Isorce <j.isorce at samsung.com> wrote:
> Currently nouveau does not support chunk decoding
> which is required to support st/va
>
> The following patches refactor nouveau_vp3_bsp
> and nvc0_decoder_bsp in order to implement
> pipe_video_codec::begin_frame/decode_bitstream/end_frame.
> So that decode_bitstream can be call multiple times
> between each begin/end.
>
> TODO: apply same logic for nv98 but I do not have the
> material to test it.
>
> https://bugs.freedesktop.org/show_bug.cgi?id=89969
>
> Julien Isorce (8):
>   nouveau: extract memcpy loop from nouveau_vp3_bsp
>   nouveau: remove nouveau_vp3_bsp to use begin/next/end
>   nouveau: split nvc0_decoder_bsp in begin/next/end
>   nouveau: preserve content buffer when calling nvc0_decoder_bsp_next
>   nouveau: remove nvc0_decoder_bsp and use begin/next/end instead
>   nvc0: implement pipe_video_codec::begin_frame/end_frame
>   nouveau: fix chunk decoding by updating number of slices
>   build: enable st/va with nouveau driver
>
Glad to hear that you've got vaapi working. Did you check that vdpau
did not regress ?

I'm wondering if it's going to be better if you gradually re-factor
the existing code. The current "1. add 'new' implementation (incl.
variables we don't want/need until halfway through), 2. remove 'old'
implementation" approach does not seem too appealing imho.

Others might disagree with my suggestion, though :)

Cheers
Emil


More information about the mesa-dev mailing list