summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-03-08 14:06:35 +1100
committerJonathan Gray <jsg@jsg.id.au>2013-03-08 14:06:35 +1100
commitb53d592ff8e2b1fceb5009f11b59c40810f0eb4d (patch)
treed3a5ccea0191e7d2365e9a2592edd3d50da626a7 /sys/dev
parentb436809e9a782907db2f1f00b45b4904a676ac10 (diff)
remove some no longer needed flush code
Diffstat (limited to 'sys/dev')
-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);