]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add flag to i915_add_request() to skip the cache flush
authorJohn Harrison <John.C.Harrison@Intel.com>
Fri, 29 May 2015 16:43:34 +0000 (17:43 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Jun 2015 12:02:04 +0000 (14:02 +0200)
commit126706fa4f4e799cebfb2e21fe93d3abfed392f2
tree93e2ec13ed7f786615ff37db867f7bf9ed8aa189
parent06b68b6f17d979199050d9f2e67932210be041ff
drm/i915: Add flag to i915_add_request() to skip the cache flush

In order to explcitly track all GPU work (and completely remove the outstanding
lazy request), it is necessary to add extra i915_add_request() calls to various
places. Some of these do not need the implicit cache flush done as part of the
standard batch buffer submission process.

This patch adds a flag to _add_request() to specify whether the flush is
required or not.

For: VIZ-5115
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Tomas Elf <tomas.elf@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c
drivers/gpu/drm/i915/i915_gem_render_state.c
drivers/gpu/drm/i915/intel_lrc.c