]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/gpu/drm/i915/i915_drv.h
drm/i915: Add flag to i915_add_request() to skip the cache flush
[mirror_ubuntu-hirsute-kernel.git] / drivers / gpu / drm / i915 / i915_drv.h
index 14154c46076239f5a9b9a8eda61b44508ab4d9c8..104893bea2f1f95e4e6368878d310b3f52436131 100644 (file)
@@ -2890,9 +2890,12 @@ int __must_check i915_gpu_idle(struct drm_device *dev);
 int __must_check i915_gem_suspend(struct drm_device *dev);
 void __i915_add_request(struct intel_engine_cs *ring,
                        struct drm_file *file,
-                       struct drm_i915_gem_object *batch_obj);
+                       struct drm_i915_gem_object *batch_obj,
+                       bool flush_caches);
 #define i915_add_request(ring) \
-       __i915_add_request(ring, NULL, NULL)
+       __i915_add_request(ring, NULL, NULL, true)
+#define i915_add_request_no_flush(ring) \
+       __i915_add_request(ring, NULL, NULL, false)
 int __i915_wait_request(struct drm_i915_gem_request *req,
                        unsigned reset_counter,
                        bool interruptible,