[Libva] memcpy VA image buffer, very poor performance!

Bian, Jonathan jonathan.bian at intel.com
Fri Jul 8 14:53:58 PDT 2011


Did you get the VAImage from vaDeriveImage()? Typically this points to uncached memory and copying from it would be slow.

Regards,
Jonathan

-----Original Message-----
From: libva-bounces+jonathan.bian=intel.com at lists.freedesktop.org [mailto:libva-bounces+jonathan.bian=intel.com at lists.freedesktop.org] On Behalf Of hank peng
Sent: Wednesday, July 06, 2011 12:05 AM
To: libva at lists.freedesktop.org
Subject: [Libva] memcpy VA image buffer, very poor performance!

Hi:
I use vaMapBuffer function to map VA image buffer, then copy data from it to my allocated memory using malloc function. I found it's performace is very poor, then, I do a test program on same platform between two allocated memory whose size is same as VA image buffer, the performance is much better, Is there any difference between the VA image mapped buffer and normal buffer allocated by malloc function?

--
The simplest is not all best but the best is surely the simplest!
_______________________________________________
Libva mailing list
Libva at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


More information about the Libva mailing list