diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-12-11 21:43:11 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-04-09 13:38:12 +0100 |
commit | 645c95400ccfd743a17b4ab90488cea7eb316776 (patch) | |
tree | 4cb77922ce2ea5d4d91edb3ff80895c40a89ff1c /lib/drmtest.c | |
parent | 1ba9717e6eda2bdd6f1f9e5d1f8e8138cbb3edd1 (diff) |
lib: Remove defunct stop_rings
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r-- | lib/drmtest.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index db65d793..01e874b7 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -129,18 +129,6 @@ static bool is_intel(int fd) return true; } -static void check_stop_rings(void) -{ - enum stop_ring_flags flags; - flags = igt_get_stop_rings(); - igt_warn_on_f(flags != 0, - "i915_ring_stop flags on exit 0x%x, can't quiescent gpu cleanly\n", - flags); - - if (flags) - igt_set_stop_rings(STOP_RING_NONE); -} - #define LOCAL_I915_EXEC_VEBOX (4 << 0) /** * gem_quiescent_gpu: @@ -161,8 +149,6 @@ void gem_quiescent_gpu(int fd) struct drm_i915_gem_exec_object2 obj; unsigned ring; - check_stop_rings(); - memset(&obj, 0, sizeof(obj)); obj.handle = gem_create(fd, 4096); gem_write(fd, obj.handle, 0, &bbe, sizeof(&bbe)); @@ -299,7 +285,6 @@ static void quiescent_gpu_at_exit(int sig) if (at_exit_drm_fd < 0) return; - check_stop_rings(); gem_quiescent_gpu(at_exit_drm_fd); close(at_exit_drm_fd); at_exit_drm_fd = -1; @@ -310,7 +295,6 @@ static void quiescent_gpu_at_exit_render(int sig) if (at_exit_drm_render_fd < 0) return; - check_stop_rings(); gem_quiescent_gpu(at_exit_drm_render_fd); close(at_exit_drm_render_fd); at_exit_drm_render_fd = -1; |