Mailinglist Archive: radeonhd (307 mails)
| < Previous | Next > |
Re: [radeonhd] Overlapping copy patch
- From: Alex Deucher <alexdeucher@xxxxxxxxx>
- Date: Tue, 24 Feb 2009 13:38:12 -0500
- Message-id: <a728f9f90902241038s1a2a9ff0rc233dcf4cde6bfa@xxxxxxxxxxxxxx>
On Tue, Feb 24, 2009 at 1:15 PM, Mark van Doesburg
<mark.vandoesburg@xxxxxxxxx> wrote:
I thought about doing that as well, but decided to stick with
alloc/free to keep more offscreen memory available for pixmaps. It's
probably worth profiling over longer periods however.
Alex
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
<mark.vandoesburg@xxxxxxxxx> wrote:
Alex Deucher <alexdeucher@xxxxxxxxx> wrote:
Thanks Mark. I've applied this patch and made a few optimizations
as well.
Thanks for patching. Your version handles the out of memory case
gracefully :-) I am not completely sure if moving the exaOffscreenAlloc
to R600PrepareCopy is a good idea however. In many cases the copies will
not overlap and there is no reason to call exaOffscreenAlloc and
exaOffscreenFree at all.
Initially I never freed the memory after allocating it, unless the
pre-allocated memory was too small, and the result was noticably faster.
I thought about doing that as well, but decided to stick with
alloc/free to keep more offscreen memory available for pixmaps. It's
probably worth profiling over longer periods however.
Alex
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
| < Previous | Next > |