Re: [Intel-gfx] [PATCH] drm/i915: Use discardable buffers for rings

2017-04-20 Thread Joonas Lahtinen
On to, 2017-04-20 at 11:17 +0100, Chris Wilson wrote: > The contents of a ring are only valid between HEAD and TAIL, when the > ring is idle (HEAD == TAIL) we can simply let the pages go under memory > pressue if they are not pinned by an active context. And new content > will be written and so the

[Intel-gfx] [PATCH] drm/i915: Use discardable buffers for rings

2017-04-20 Thread Chris Wilson
The contents of a ring are only valid between HEAD and TAIL, when the ring is idle (HEAD == TAIL) we can simply let the pages go under memory pressue if they are not pinned by an active context. And new content will be written and so the ring will again be valid between HEAD and TAIL, everything ou