diff options
Diffstat (limited to 'tests/gem_ctx_thrash.c')
-rw-r--r-- | tests/gem_ctx_thrash.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/gem_ctx_thrash.c b/tests/gem_ctx_thrash.c index 129cf457..46b41ced 100644 --- a/tests/gem_ctx_thrash.c +++ b/tests/gem_ctx_thrash.c @@ -48,11 +48,7 @@ static unsigned get_num_contexts(int fd) unsigned count; /* Compute the number of contexts we can allocate to fill the GGTT */ - if (intel_gen(intel_get_drm_devid(fd)) >= 8) - ggtt_size = 1ull << 32; - else - ggtt_size = 1ull << 31; - + ggtt_size = gem_global_aperture_size(fd); size = 64 << 10; /* Most gen require at least 64k for ctx */ count = 3 * (ggtt_size / size) / 2; |