summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/i915_drv.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-03-08 13:55:20 +1100
committerJonathan Gray <jsg@jsg.id.au>2013-03-08 13:55:20 +1100
commitb436809e9a782907db2f1f00b45b4904a676ac10 (patch)
treef3075b44c6bf89f270b3da8173967c8bac1aad75 /sys/dev/pci/drm/i915_drv.c
parent590918f52807f5325366ee632e1742c3e27a76d0 (diff)
remove gpu_write_list
Diffstat (limited to 'sys/dev/pci/drm/i915_drv.c')
-rw-r--r--sys/dev/pci/drm/i915_drv.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c
index e6969803123..98c5c91e48a 100644
--- a/sys/dev/pci/drm/i915_drv.c
+++ b/sys/dev/pci/drm/i915_drv.c
@@ -1492,11 +1492,8 @@ i915_gem_retire_work_handler(void *arg1, void *unused)
i915_gem_retire_requests(dev_priv);
idle = true;
for_each_ring(ring, dev_priv, i) {
-
- if (!list_empty(&ring->gpu_write_list)) {
- i915_gem_flush_ring(ring, 0, I915_GEM_GPU_DOMAINS);
+ if (ring->gpu_caches_dirty)
i915_add_request(ring, NULL, NULL);
- }
idle &= list_empty(&ring->request_list);
}