]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Amalgamate flushing of display objects
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 22 Feb 2017 11:40:46 +0000 (11:40 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 22 Feb 2017 12:12:13 +0000 (12:12 +0000)
commit6f981ce0404812b8cbd8bd47305f421651413e39
tree21c27cff6d4fc392f8381112ed8a9a71ed1a468a
parentb08ddf1ba6607416a8866d613994f1104d4754f2
drm/i915: Amalgamate flushing of display objects

We have three different paths by which userspace wants to flush the
display plane (i.e. objects with obj->pin_display). Use a common helper
to identify those paths and to simplify a later change.

v2: Include the conditional in the name, i915_gem_object_flush_if_display

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170222114049.28456-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_object.h
drivers/gpu/drm/i915/intel_display.c