[Libva] [PATCH][G45][07/10] Add NV12 image format

Gwenole Beauchesne gbeauchesne at splitted-desktop.com
Mon Jul 12 02:27:09 PDT 2010


Hi,

On Mon, 12 Jul 2010, Xiang, Haihao wrote:

>>>> Note: it should be possible to write an NV12->I420 shader program for
>>>> non H.264 surfaces, but I don't know how. :) So, I am currently
>>>> returning an error if the source surface is not used for H.264
>>>> decoding.
>>>
>>> Failed to apply this patch.
>>
>> New patch attached. Thanks.
>
> Currently the driver packs commands into a batch buffer for decoding,
> rendering as much as possible, this means decoding may be postponed.
> hence it is needed to execute the batch buffer (intel_batchbuffer_flush)
> before reading surface data, or it maybe read stale data.

OK, then the better fix is to implement vaSyncSurface() that calls 
intel_batchbuffer_flush() then call vaSyncSurface() in vaGetImage(). I 
will test that later.

Thanks,
Gwenole.


More information about the Libva mailing list