[Mesa-dev] [PATCH 4/4] i965/drm: Purge the bucket when its cached buffer is evicted
Chris Wilson
chris at chris-wilson.co.uk
Sat May 5 07:55:24 UTC 2018
Quoting James Xiong (2018-05-05 01:56:05)
> From: "Xiong, James" <james.xiong at intel.com>
>
> When one of cached buffers is found to be evicted by kernel,
> most likely the buffers freed earlier than this buffer are
> gone too, go through the cached list in the bucket and purge.
The order in this list bears little relevance to the MRU lists in the
kernel. (I wish it did.) So why? The list will be processed in due
course, so why pay the cost now? Even in the worst case, they will be
cleaned up as we are in the middle of processing the lists.
-Chris
More information about the mesa-dev
mailing list