summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_object.h
diff options
context:
space:
mode:
authorChris Wilson2017-02-22 12:40:46 +0100
committerChris Wilson2017-02-22 13:12:13 +0100
commit5a97bcc69cc02d4da9599ed2c256b65fc3bd4ee7 (patch)
tree21c27cff6d4fc392f8381112ed8a9a71ed1a468a /drivers/gpu/drm/i915/i915_gem_object.h
parentdrm/i915: Move cpu_cache_is_coherent() to header (diff)
downloadkernel-qcow2-linux-5a97bcc69cc02d4da9599ed2c256b65fc3bd4ee7.tar.gz
kernel-qcow2-linux-5a97bcc69cc02d4da9599ed2c256b65fc3bd4ee7.tar.xz
kernel-qcow2-linux-5a97bcc69cc02d4da9599ed2c256b65fc3bd4ee7.zip
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
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_object.h')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_object.h b/drivers/gpu/drm/i915/i915_gem_object.h
index ef4893a4f08c..2fb30a5eb510 100644
--- a/drivers/gpu/drm/i915/i915_gem_object.h
+++ b/drivers/gpu/drm/i915/i915_gem_object.h
@@ -364,5 +364,7 @@ i915_gem_object_last_write_engine(struct drm_i915_gem_object *obj)
return engine;
}
+void i915_gem_object_flush_if_display(struct drm_i915_gem_object *obj);
+
#endif