Commit fedd92f4 authored by Chris Wilson's avatar Chris Wilson

i915/gem_shrink: Open the device before using it!

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110212
Fixes: 8ae86621 ("lib/igt_device: Move intel_get_pci_device under igt_device")
Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
parent 27939a17
Pipeline #25162 passed with stages
in 7 minutes and 8 seconds
......@@ -403,7 +403,11 @@ igt_main
unsigned int engine;
int fd;
/* Spawn enough processes to use all memory, but each only
fd = drm_open_driver(DRIVER_INTEL);
igt_require_gem(fd);
/*
* Spawn enough processes to use all memory, but each only
* uses half the available mappable aperture ~128MiB.
* Individually the processes would be ok, but en masse
* we expect the shrinker to start purging objects,
......@@ -418,9 +422,6 @@ igt_main
intel_require_memory(num_processes, alloc_size,
CHECK_SWAP | CHECK_RAM);
fd = drm_open_driver(DRIVER_INTEL);
igt_require_gem(fd);
nengine = 0;
for_each_engine(fd, engine)
engines[nengine++] = engine;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment