[PATCH] Allocate bo objects to GTT always.

Michel Dänzer michel at daenzer.net
Wed Feb 10 02:29:50 PST 2010


On Tue, 2010-02-09 at 19:31 +0200, Pauli Nieminen wrote: 
> Memmove/memcpy to vram is very slow operation. To avoid the slow copy
> allocate all buffer objects to GTT.

I'm not sure that's all there is to it (Have you tried setting it to
VRAM instead of GTT?). With write-combining, I wouldn't expect CPU
writes to VRAM + blit from VRAM to be significantly slower than CPU
writes to GTT + blit from GTT. I think the problem is rather that
without specifying a domain explicitly, the BO starts out in system RAM,
incurring additional overhead when rendering from it.

So while I'm okay with the code change, I suspect the commit log could
be better.


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the xorg-driver-ati mailing list