[Intel-gfx] gem clflush optimization for media encoding

Keith Packard keithp at keithp.com
Wed Jun 22 18:20:35 CEST 2011


On Wed, 22 Jun 2011 08:29:24 +0200, Daniel Vetter <daniel at ffwll.ch> wrote:

> The important thing is that you may never use the cpu mappings with
> these functions (for objects of similar size). Because libdrm reuses
> bos without checking their domain, you'll get tons of unnecessary
> clflush even on objects that do not get accessed through the cpu
> domain.

Yeah, the problem is that a BO which is not pinned down may get paged
out, in which case it lands in the CPU domain. I'm not sure we've ever
added an optimization to avoid flushing objects which are known not to
have been written to disk?

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20110622/9c27fa3a/attachment.sig>


More information about the Intel-gfx mailing list