diff options
author | Robert Foss <robert.foss@collabora.com> | 2016-06-28 10:01:48 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-28 10:06:31 +0100 |
commit | e1c3cde5b00ad003cad99abc1a507878e854e3f7 (patch) | |
tree | 3bb2ca13669088178afa2c962906bd02dc721398 /lib/drmtest.c | |
parent | 88c1f7c00c42cea436d4fb0248a289289b8b2ca1 (diff) |
lib: Avoid running gem_quiescent_gpu() on non-Intel hardware
When opening the device, we first ensure the device is idle. However,
performing GEM operations on !i915 is bad behaviour, so don't.
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r-- | lib/drmtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c index 632fec41..884fe7cc 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -338,7 +338,7 @@ int drm_open_driver(int chipset) if (__sync_fetch_and_add(&open_count, 1)) return fd; - if(chipset & DRIVER_INTEL){ + if (is_i915_device(fd)) { gem_quiescent_gpu(fd); igt_install_exit_handler(quiescent_gpu_at_exit); } |