intel: Free memory before inserting bo into cache.
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Dec 2009 13:36:22 +0000 (13:36 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Dec 2009 14:29:23 +0000 (14:29 +0000)
commit57473c7f523f476ffa54c34e0c6312ffa66dcc5c
treed670ad58335b2d7483bb4b12ebb645f74ba4a0cb
parent792fed1e2460f96459141b5a628dd5ab4fbb87db
intel: Free memory before inserting bo into cache.

This has the unfortunate behaviour of releasing our malloc cache, but
the alternative is for X to consume a couple of gigabytes of ram and
die during testing. Fortunately the extra mallocs have little impact on
performance whereas avoiding swap and death, lots.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c