igt/gem_evict_everything: Compute number of surfaces to saturate the aperture
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jun 2014 12:19:39 +0000 (13:19 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jun 2014 12:34:02 +0000 (13:34 +0100)
commita1a8aa16fb4e27a267f4ac12883419114a020dd7
treece996f3836ccdeb0f6986099f260cecb0dbb012c
parent5141b21f915ce7e857bcacbd1eb4ec9eebf3fe93
igt/gem_evict_everything: Compute number of surfaces to saturate the aperture

The goal is to only fill the aperture, not all of memory, so fine-tune
the computed number of surfaces, hopefully avoiding an integer overflow
in the process.

References: https://bugs.freedesktop.org/show_bug.cgi?id=79573
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tests/eviction_common.c