OSDN Git Service

intel: Free buffers in the BO cache that haven't been reused in a while.
authorEric Anholt <eric@anholt.net>
Fri, 10 Jul 2009 00:49:46 +0000 (17:49 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 10 Jul 2009 03:17:53 +0000 (20:17 -0700)
commit3f3c5be6f908272199ccf53f108b1124bfe0a00e
tree757799c548970a7b263c2113f27723c4e671b61c
parent80179df5f85a2fd39b2544f1b7aae61102800f0f
intel: Free buffers in the BO cache that haven't been reused in a while.

The goal of the BO cache is to keep buffers on hand for fast continuous use,
as in every frame of a game or every batchbuffer of the X Server.  Keeping
older buffers on hand not only doesn't serve this purpose, it may hurt
performance by resulting in disk cache getting kicked out, or even driving
the system to swap.

Bug #20766.
libdrm/intel/intel_bufmgr_gem.c