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.
_______________________________________________
Libva mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libva

Reply via email to