diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2008-04-21 10:45:11 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2008-04-21 10:45:11 +0200 |
commit | 6c95fae1e9d6b0eb64bc78eced05a6e9f5faf02e (patch) | |
tree | f416d1c8382e0281653b6ca0dcc0f08885210b54 /exa/exa.h | |
parent | 40c6be1408a1f0b236fdb28af27ae18aea0d578f (diff) |
EXA: Offscreen memory eviction improvements.
* Make sure available areas are considered to have no eviction cost. This seems
to help for https://bugs.freedesktop.org/show_bug.cgi?id=15513 but I'm afraid
that may just be coincidence.
* Only calculate eviction cost of each area once for each eviction pass.
Safeguard against potential (though unlikely) division by zero.
* Cosmetic enhancements: Name eviction cost related variables 'cost' instead of
'score' to emphasize that smaller values are better, update Doxygen file
comment to the way eviction works now.
Diffstat (limited to 'exa/exa.h')
-rw-r--r-- | exa/exa.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -64,6 +64,8 @@ struct _ExaOffscreenArea { ExaOffscreenState state; ExaOffscreenArea *next; + + unsigned eviction_cost; }; /** |