From e1c3cde5b00ad003cad99abc1a507878e854e3f7 Mon Sep 17 00:00:00 2001 From: Robert Foss Date: Tue, 28 Jun 2016 10:01:48 +0100 Subject: 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 --- lib/drmtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/drmtest.c') 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); } -- cgit v1.2.3