<p>This. I thought that, to trigger uploads, we just had to change the domain on the buffer.</p>
<p>Sending from a mobile, pardon the brevity. ~ C.</p>
<p>On Nov 11, 2010 3:00 PM, "Jerome Glisse" <<a href="mailto:j.glisse@gmail.com">j.glisse@gmail.com</a>> wrote:<br type="attribution">> 2010/11/11 Keith Whitwell <<a href="mailto:keithw@vmware.com">keithw@vmware.com</a>>:<br>
>> There is still more to do there. Currently r600g treats buffer and texture uploads separately, and I've only attempted to improve texture uploads. Buffer is just as important however.<br>>><br>>> The change needed is likely to be one of two:<br>
>> a) Allow newly created vertex buffers to be in the GTT domain, where they can be mapped cached.<br>>> b) Provide a staging resource upload path (with the staging buffer in GTT domain).<br>>><br>>> The latter will catch more cases and doesn't suffer from waits for the engine to go idle when accessing an in-use buffer. The former is probably fastest for the cases where it works.<br>
>><br>>> Right now staged texture uploads use a 3d blit to copy from the staging resource to the final destination. That probably won't work (directly at least) for buffer uploads as buffer dimensions (eg 64k by 1) mean they usually can't be bound as render targets. So we need to jump through some hoops to get a hardware upload path in the absence of a DMA engine or 1d-blit.<br>
>><br>>> Keith<br>> <br>> I am not sure on how gallium texture upload was ever supposed to be or<br>> done, but from memory management point of view the idea i had was to<br>> create all bo in GTT and let migrate them to VRAM once they are use,<br>
> eliminating any need for staging buffer. So it would be allocate bo,<br>> memcpy to bo the content of the texture, use bo and set it as vram bo<br>> so kernel migrate it to vram, that way you take advantage of kernel bo<br>
> move which should be faster than any blit helped move.<br>> <br>> Anyway this was my initial thinking when doing the code.<br>> <br>> Cheers,<br>> Jerome Glisse<br>> _______________________________________________<br>
> mesa-dev mailing list<br>> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</p>