Re: [Intel-gfx] [PATCH] drm/i915: Mark CPU cache as dirty on every transition for CPU writes

2017-05-17 Thread Dongwon Kim
Chris, This patch works now as we unconditionally set cache_dirty in set_cache_level function. Tested-by: Dongwon Kim On Wed, May 17, 2017 at 04:05:24PM +0100, Chris Wilson wrote: > Currently, we only mark the CPU cache as dirty if we skip a clflush. > This leads to some confusion where we hav

[Intel-gfx] [PATCH] drm/i915: Mark CPU cache as dirty on every transition for CPU writes

2017-05-17 Thread Chris Wilson
Currently, we only mark the CPU cache as dirty if we skip a clflush. This leads to some confusion where we have to ask if the object is in the write domain or missed a clflush. If we always mark the cache as dirty, this becomes a much simply question to answer. The goal remains to do as few clflus