[PATCH] intel: When re-use cache is full, wait instead of allocating

2008-12-15 Thread Keith Packard
This limits application memory usage by waiting for the GPU to free memory rather than simply continuing to allocate more memory. Signed-off-by: Keith Packard kei...@keithp.com --- libdrm/intel/intel_bufmgr_gem.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git

Re: [Intel-gfx] [PATCH] intel: When re-use cache is full, wait instead of allocating

2008-12-15 Thread Eric Anholt
On Mon, 2008-12-15 at 15:08 -0800, Keith Packard wrote: This limits application memory usage by waiting for the GPU to free memory rather than simply continuing to allocate more memory. I think I theoretically prefer the current behavior in the presence of max_entries where you still alloc a

Re: [Intel-gfx] [PATCH] intel: When re-use cache is full, wait instead of allocating

2008-12-15 Thread Keith Packard
On Mon, 2008-12-15 at 17:40 -0800, Eric Anholt wrote: On Mon, 2008-12-15 at 15:08 -0800, Keith Packard wrote: This limits application memory usage by waiting for the GPU to free memory rather than simply continuing to allocate more memory. I think I theoretically prefer the current