Commit fedd92f4 authored by Chris Wilson's avatar Chris Wilson

i915/gem_shrink: Open the device before using it!

Fixes: 8ae86621 ("lib/igt_device: Move intel_get_pci_device under igt_device")
Signed-off-by: Chris Wilson's avatarChris Wilson <>
Cc: Michał Winiarski <>
Reviewed-by: Ville Syrjälä's avatarVille Syrjälä <>
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);
* 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,
fd = drm_open_driver(DRIVER_INTEL);
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