summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/i915_gem_execbuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/i915_gem_execbuffer.c')
-rw-r--r--sys/dev/pci/drm/i915_gem_execbuffer.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/dev/pci/drm/i915_gem_execbuffer.c b/sys/dev/pci/drm/i915_gem_execbuffer.c
index e5a3d0ff2e7..a63236f88b0 100644
--- a/sys/dev/pci/drm/i915_gem_execbuffer.c
+++ b/sys/dev/pci/drm/i915_gem_execbuffer.c
@@ -450,25 +450,9 @@ i915_gem_execbuffer_retire_commands(struct drm_device *dev,
struct drm_file *file,
struct intel_ring_buffer *ring)
{
- u32 invalidate;
-
/* Unconditionally force add_request to emit a full flush. */
ring->gpu_caches_dirty = true;
- /*
- * Ensure that the commands in the batch buffer are
- * finished before the interrupt fires.
- *
- * The sampler always gets flushed on i965 (sigh).
- */
- invalidate = I915_GEM_DOMAIN_COMMAND;
- if (INTEL_INFO(dev)->gen >= 4)
- invalidate |= I915_GEM_DOMAIN_SAMPLER;
- if (ring->flush(ring, invalidate, 0)) {
- i915_gem_next_request_seqno(ring);
- return;
- }
-
/* Add a breadcrumb for the completion of the batch buffer */
if (i915_add_request(ring, file, NULL))
i915_gem_next_request_seqno(ring);